Rhys Sullivanwip apifb7e9f68 months agoHistory
52 lines · 1.4 KB · TypeScript
RawDownload
import { HttpApiSchema } from "@effect/platform";import * as Schema from "effect/Schema"; export class ControlPlaneBadRequestError extends Schema.TaggedError<ControlPlaneBadRequestError>()(  "ControlPlaneBadRequestError",  {    operation: Schema.String,    message: Schema.String,    details: Schema.String,  },  HttpApiSchema.annotations({ status: 400 }),) {} export class ControlPlaneUnauthorizedError extends Schema.TaggedError<ControlPlaneUnauthorizedError>()(  "ControlPlaneUnauthorizedError",  {    operation: Schema.String,    message: Schema.String,    details: Schema.String,  },  HttpApiSchema.annotations({ status: 401 }),) {} export class ControlPlaneForbiddenError extends Schema.TaggedError<ControlPlaneForbiddenError>()(  "ControlPlaneForbiddenError",  {    operation: Schema.String,    message: Schema.String,    details: Schema.String,  },  HttpApiSchema.annotations({ status: 403 }),) {} export class ControlPlaneNotFoundError extends Schema.TaggedError<ControlPlaneNotFoundError>()(  "ControlPlaneNotFoundError",  {    operation: Schema.String,    message: Schema.String,    details: Schema.String,  },  HttpApiSchema.annotations({ status: 404 }),) {} export class ControlPlaneStorageError extends Schema.TaggedError<ControlPlaneStorageError>()(  "ControlPlaneStorageError",  {    operation: Schema.String,    message: Schema.String,    details: Schema.String,  },  HttpApiSchema.annotations({ status: 500 }),) {}