import { HttpApiSchema } from "@effect/platform"; import * as Schema from "effect/Schema"; export class ControlPlaneBadRequestError extends Schema.TaggedError()( "ControlPlaneBadRequestError", { operation: Schema.String, message: Schema.String, details: Schema.String, }, HttpApiSchema.annotations({ status: 400 }), ) {} export class ControlPlaneUnauthorizedError extends Schema.TaggedError()( "ControlPlaneUnauthorizedError", { operation: Schema.String, message: Schema.String, details: Schema.String, }, HttpApiSchema.annotations({ status: 401 }), ) {} export class ControlPlaneForbiddenError extends Schema.TaggedError()( "ControlPlaneForbiddenError", { operation: Schema.String, message: Schema.String, details: Schema.String, }, HttpApiSchema.annotations({ status: 403 }), ) {} export class ControlPlaneNotFoundError extends Schema.TaggedError()( "ControlPlaneNotFoundError", { operation: Schema.String, message: Schema.String, details: Schema.String, }, HttpApiSchema.annotations({ status: 404 }), ) {} export class ControlPlaneStorageError extends Schema.TaggedError()( "ControlPlaneStorageError", { operation: Schema.String, message: Schema.String, details: Schema.String, }, HttpApiSchema.annotations({ status: 500 }), ) {}