import { CustomError } from "ts-custom-error"; export type MastoErrorType = "ERR_BLOCKED" | "ERR_UNREACHABLE" | "ERR_TAKEN" | "ERR_RESERVED" | "ERR_ACCEPTED" | "ERR_BLANK" | "ERR_INVALID" | "ERR_TOO_LONG" | "ERR_TOO_SHORT" | "ERR_INCLUSION"; export interface MastoHttpErrorDetail { readonly error: MastoErrorType; readonly description: string; } export type MastoHttpErrorDetails = Record; export interface MastoHttpErrorProps { readonly statusCode: number; readonly message: string; readonly description?: string; readonly details?: MastoHttpErrorDetails; readonly additionalProperties?: Record; } export declare class MastoHttpError extends CustomError { readonly statusCode: number; readonly description?: string; readonly details?: MastoHttpErrorDetails; readonly additionalProperties?: Record; constructor(props: MastoHttpErrorProps, errorOptions?: ErrorOptions); }