Openstatus
www.openstatus.dev
1import { z } from "zod";
2
3export const ErrorCodes = [
4 "BAD_REQUEST",
5 "FORBIDDEN",
6 "INTERNAL_SERVER_ERROR",
7 "PAYMENT_REQUIRED",
8 "CONFLICT",
9 "NOT_FOUND",
10 "UNAUTHORIZED",
11 "METHOD_NOT_ALLOWED",
12 "UNPROCESSABLE_ENTITY",
13] as const;
14
15export const ErrorCodeEnum = z.enum(ErrorCodes);
16
17export type ErrorCode = z.infer<typeof ErrorCodeEnum>;