Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

HttpApiError

16 exports Added in v1.0.0 Source

Empty Errors

BadRequest

Added in v1.0.0 Source

Signature

declare class BadRequest extends EmptyError<BadRequest, "BadRequest", this> {
constructor(_: void);
}

Conflict

Added in v1.0.0 Source

Signature

declare class Conflict extends EmptyError<Conflict, "Conflict", this> {
constructor(_: void);
}

Forbidden

Added in v1.0.0 Source

Signature

declare class Forbidden extends EmptyError<Forbidden, "Forbidden", this> {
constructor(_: void);
}

Gone

Added in v1.0.0 Source

Signature

declare class Gone extends EmptyError<Gone, "Gone", this> {
constructor(_: void);
}

Signature

declare class InternalServerError extends EmptyError<InternalServerError, "InternalServerError", this> {
constructor(_: void);
}

Signature

declare class MethodNotAllowed extends EmptyError<MethodNotAllowed, "MethodNotAllowed", this> {
constructor(_: void);
}

Signature

declare class NotAcceptable extends EmptyError<NotAcceptable, "NotAcceptable", this> {
constructor(_: void);
}

NotFound

Added in v1.0.0 Source

Signature

declare class NotFound extends EmptyError<NotFound, "NotFound", this> {
constructor(_: void);
}

Signature

declare class NotImplemented extends EmptyError<NotImplemented, "NotImplemented", this> {
constructor(_: void);
}

Signature

declare class RequestTimeout extends EmptyError<RequestTimeout, "RequestTimeout", this> {
constructor(_: void);
}

Signature

declare class ServiceUnavailable extends EmptyError<ServiceUnavailable, "ServiceUnavailable", this> {
constructor(_: void);
}

Unauthorized

Added in v1.0.0 Source

Signature

declare class Unauthorized extends EmptyError<Unauthorized, "Unauthorized", this> {
constructor(_: void);
}

Errors

Signature

declare class HttpApiDecodeError extends {
readonly _tag: "HttpApiDecodeError";
readonly issues: readonly Array<unknown>;
readonly message: string;
} & YieldableError<this> {
constructor(...args: [props: {
readonly _tag?: "HttpApiDecodeError";
readonly issues: readonly Array<unknown>;
readonly message: string;
}, options?: MakeOptions]);
static fromParseError(error: ParseError): Effect<HttpApiDecodeError>;
static refailParseError(error: ParseError): Effect<never, HttpApiDecodeError>;
}

Schemas

Issue

Added in v1.0.0 Source

Signature

declare class Issue extends any {
constructor();
}

Type Ids

TypeId

Added in v1.0.0 Source

Signature

declare const TypeId: unique symbol

TypeId type

Added in v1.0.0 Source

Signature

type TypeId = typeof TypeId