Skip to main content Link Search Menu Expand Document (external link)

HttpServerError overview

Added in v1.0.0


Table of contents


error

HttpServerError (type alias)

Signature

export type HttpServerError = RequestError | ResponseError | RouteNotFound | ServeError

Added in v1.0.0

RequestError (class)

Signature

export declare class RequestError

Added in v1.0.0

[Respondable.symbol] (method)

Signature

;[Respondable.symbol]()

Added in v1.0.0

ResponseError (class)

Signature

export declare class ResponseError

Added in v1.0.0

[Respondable.symbol] (method)

Signature

;[Respondable.symbol]()

Added in v1.0.0

RouteNotFound (class)

Signature

export declare class RouteNotFound {
  constructor(options: { request: ServerRequest.HttpServerRequest })
}

Added in v1.0.0

[Respondable.symbol] (method)

Signature

;[Respondable.symbol]()

Added in v1.0.0

ServeError (class)

Signature

export declare class ServeError

Added in v1.0.0

predicates

isServerError

Signature

export declare const isServerError: (u: unknown) => u is HttpServerError

Added in v1.0.0

type id

TypeId

Signature

export declare const TypeId: typeof TypeId

Added in v1.0.0

TypeId (type alias)

Signature

export type TypeId = typeof TypeId

Added in v1.0.0

utils

causeResponse

Signature

export declare const causeResponse: <E>(
  cause: Cause.Cause<E>
) => Effect.Effect<readonly [ServerResponse.HttpServerResponse, Cause.Cause<E>]>

Added in v1.0.0

causeResponseStripped

Signature

export declare const causeResponseStripped: <E>(
  cause: Cause.Cause<E>
) => readonly [response: ServerResponse.HttpServerResponse, cause: Option.Option<Cause.Cause<E>>]

Added in v1.0.0

clientAbortFiberId

Signature

export declare const clientAbortFiberId: FiberId.FiberId

Added in v1.0.0

exitResponse

Signature

export declare const exitResponse: <E>(
  exit: Exit.Exit<ServerResponse.HttpServerResponse, E>
) => ServerResponse.HttpServerResponse

Added in v1.0.0