UNPKG

@scalar/api-client

Version:

the open source API testing client

55 lines 1.27 kB
export declare const STATUS_CODES_COLORS: { readonly 100: { readonly color: "text-yellow"; }; readonly 200: { readonly color: "text-green"; }; readonly 202: { readonly color: "text-green"; }; readonly 300: { readonly color: "text-blue"; }; readonly 304: { readonly color: "text-blue"; }; readonly 400: { readonly color: "text-red"; }; readonly 401: { readonly color: "text-orange"; }; readonly 422: { readonly color: "text-yellow"; }; readonly 423: { readonly color: "text-purple"; }; readonly 505: { readonly color: "text-orange"; }; }; export type StatusCode = keyof typeof STATUS_CODES_COLORS; export declare const getStatusCodeColor: (statusCode: number) => { readonly color: "text-yellow"; } | { readonly color: "text-green"; } | { readonly color: "text-green"; } | { readonly color: "text-blue"; } | { readonly color: "text-blue"; } | { readonly color: "text-red"; } | { readonly color: "text-orange"; } | { readonly color: "text-yellow"; } | { readonly color: "text-purple"; } | { readonly color: "text-orange"; }; //# sourceMappingURL=httpStatusCodeColors.d.ts.map