the-moby-effect
Version:
Moby/Docker API client built using effect-ts
119 lines • 4.2 kB
JavaScript
import * as Schema from "effect/Schema";
/** @since 1.0.0 */
export class BadRequest extends /*#__PURE__*/Schema.ErrorClass("BadRequest")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("BadRequest"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "BadRequest",
description: "BadRequest",
httpApiStatus: 400
}) {}
/** @since 1.0.0 */
export class Unauthorized extends /*#__PURE__*/Schema.ErrorClass("Unauthorized")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("Unauthorized"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "Unauthorized",
description: "Unauthorized",
httpApiStatus: 401
}) {}
/** @since 1.0.0 */
export class Forbidden extends /*#__PURE__*/Schema.ErrorClass("Forbidden")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("Forbidden"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "Forbidden",
description: "Forbidden",
httpApiStatus: 403
}) {}
/** @since 1.0.0 */
export class NotFound extends /*#__PURE__*/Schema.ErrorClass("NotFound")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("NotFound"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "NotFound",
description: "NotFound",
httpApiStatus: 404
}) {}
/** @since 1.0.0 */
export class MethodNotAllowed extends /*#__PURE__*/Schema.ErrorClass("MethodNotAllowed")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("MethodNotAllowed"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "MethodNotAllowed",
description: "MethodNotAllowed",
httpApiStatus: 405
}) {}
/** @since 1.0.0 */
export class NotAcceptable extends /*#__PURE__*/Schema.ErrorClass("NotAcceptable")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("NotAcceptable"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "NotAcceptable",
description: "NotAcceptable",
httpApiStatus: 406
}) {}
/** @since 1.0.0 */
export class RequestTimeout extends /*#__PURE__*/Schema.ErrorClass("RequestTimeout")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("RequestTimeout"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "RequestTimeout",
description: "RequestTimeout",
httpApiStatus: 408
}) {}
/** @since 1.0.0 */
export class Conflict extends /*#__PURE__*/Schema.ErrorClass("Conflict")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("Conflict"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "Conflict",
description: "Conflict",
httpApiStatus: 409
}) {}
/** @since 1.0.0 */
export class Gone extends /*#__PURE__*/Schema.ErrorClass("Gone")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("Gone"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "Gone",
description: "Gone",
httpApiStatus: 410
}) {}
/** @since 1.0.0 */
export class UnprocessableEntity extends /*#__PURE__*/Schema.ErrorClass("UnprocessableEntity")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("UnprocessableEntity"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "UnprocessableEntity",
description: "UnprocessableEntity",
httpApiStatus: 422
}) {}
/** @since 1.0.0 */
export class InternalServerError extends /*#__PURE__*/Schema.ErrorClass("InternalServerError")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("InternalServerError"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "InternalServerError",
description: "InternalServerError",
httpApiStatus: 500
}) {}
/** @since 1.0.0 */
export class NotImplemented extends /*#__PURE__*/Schema.ErrorClass("NotImplemented")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("NotImplemented"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "NotImplemented",
description: "NotImplemented",
httpApiStatus: 501
}) {}
/** @since 1.0.0 */
export class ServiceUnavailable extends /*#__PURE__*/Schema.ErrorClass("ServiceUnavailable")({
_tag: /*#__PURE__*/Schema.tagDefaultOmit("ServiceUnavailable"),
message: /*#__PURE__*/Schema.optionalKey(Schema.String)
}, {
identifier: "ServiceUnavailable",
description: "ServiceUnavailable",
httpApiStatus: 503
}) {}
//# sourceMappingURL=errors.js.map