Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
398 B ยท 19 lines
TypeScript
1234567891011121314151617181920import { z } from "zod";
export const ErrorCodes = [ "BAD_REQUEST", "FORBIDDEN", "INTERNAL_SERVER_ERROR", "PAYMENT_REQUIRED", "CONFLICT", "NOT_FOUND", "UNAUTHORIZED", "METHOD_NOT_ALLOWED", "UNPROCESSABLE_ENTITY", "TOO_MANY_REQUESTS", "SERVICE_UNAVAILABLE",] as const;
export const ErrorCodeEnum = z.enum(ErrorCodes);
export type ErrorCode = z.infer<typeof ErrorCodeEnum>;