HttpServerError.ts overview
Since v1.0.0
Exports Grouped by Category
error
HttpServerError (type alias)
Signature
type HttpServerError = RequestError | ResponseError | RouteNotFound | ServeError
Since v1.0.0
RequestError (class)
Signature
declare class RequestError
Since v1.0.0
[Respondable.symbol] (method)
Signature
declare const [Respondable.symbol]: () => ServerResponse.HttpServerResponse
Since v1.0.0
ResponseError (class)
Signature
declare class ResponseError
Since v1.0.0
[Respondable.symbol] (method)
Signature
declare const [Respondable.symbol]: () => ServerResponse.HttpServerResponse
Since v1.0.0
RouteNotFound (class)
Signature
declare class RouteNotFound {
constructor(options: { request: ServerRequest.HttpServerRequest })
}
Since v1.0.0
[Respondable.symbol] (method)
Signature
declare const [Respondable.symbol]: () => ServerResponse.HttpServerResponse
Since v1.0.0
ServeError (class)
Signature
declare class ServeError
Since v1.0.0
predicates
isServerError
Signature
declare const isServerError: (u: unknown) => u is HttpServerError
Since v1.0.0
type id
TypeId
Signature
declare const TypeId: unique symbol
Since v1.0.0
TypeId (type alias)
Signature
type TypeId = typeof TypeId
Since v1.0.0
utils
causeResponse
Signature
declare const causeResponse: <E>(
cause: Cause.Cause<E>
) => Effect.Effect<readonly [ServerResponse.HttpServerResponse, Cause.Cause<E>]>
Since v1.0.0
causeResponseStripped
Signature
declare const causeResponseStripped: <E>(
cause: Cause.Cause<E>
) => readonly [response: ServerResponse.HttpServerResponse, cause: Option.Option<Cause.Cause<E>>]
Since v1.0.0
clientAbortFiberId
Signature
declare const clientAbortFiberId: FiberId.FiberId
Since v1.0.0
exitResponse
Signature
declare const exitResponse: <E>(
exit: Exit.Exit<ServerResponse.HttpServerResponse, E>
) => ServerResponse.HttpServerResponse
Since v1.0.0