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 }),) {}
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 }),
) {}