Customizing Error Output in HttpApi

how can i customize the error output from HttpApi? i'd prefer to have a different syntax, and it seems like


        class CustomError extends Schema.TaggedError<CustomError>()("CustomError", {
          name: Schema.String
        }) {
          [HttpServerRespondable.symbol]() {
            return HttpServerResponse.schemaJson(CustomError)(this, { status: 599 })
          }
        }


is not supported by HttpApi (but potentially only by others like HttpRouter?)
Was this page helpful?