export const ExceptionCode = {
  unknown: "UNKNOWN",
  network: "NETWORK_ERROR",
  timeout: "NETWORK_TIMEOUT",
  unauthorized: "HTTP_UNAUTHORIZED",
  forbidden: "HTTP_FORBIDDEN",
  notFound: "HTTP_NOT_FOUND",
  server: "HTTP_SERVER_ERROR",
  validation: "VALIDATION_ERROR",
  storage: "STORAGE_ERROR",
  payment: "PAYMENT_ERROR",
  permissionDenied: "PERMISSION_DENIED",
  unsupported: "UNSUPPORTED_FEATURE",
  cancelled: "CANCELLED",
} as const;

export type ExceptionCode =
  (typeof ExceptionCode)[keyof typeof ExceptionCode];
