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

ServerError 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

ResponseError (class)

Signature

export declare class ResponseError

Added in v1.0.0

RouteNotFound (class)

Signature

export declare class RouteNotFound

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

causeStatusCode

Signature

export declare const causeStatusCode: <E>(cause: Cause.Cause<E>) => number

Added in v1.0.0

clientAbortFiberId

Signature

export declare const clientAbortFiberId: FiberId.FiberId

Added in v1.0.0

isClientAbortCause

Signature

export declare const isClientAbortCause: <E>(cause: Cause.Cause<E>) => boolean

Added in v1.0.0