Blame: web/src/lib/wire-status.ts
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 1 | export const STATUS_BY_KIND: Record<string, number> = { |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 2 | bad_request: 400, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 3 | not_found: 404, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 4 | conflict: 409, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 5 | busy: 429, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 6 | too_large: 413, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 7 | unsupported: 415, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 8 | engine_stopped: 502, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 9 | upstream: 502, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 10 | unauthorized: 401, |
7cca1d5628d1 | atagen | 2026-10-24 07:36 UTC | 11 | forbidden: 403, |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 12 | store_in_use: 409 |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 13 | }; |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 14 | |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 15 | export function statusForKind(kind: string): number { |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 16 | return STATUS_BY_KIND[kind] ?? 502; |
973f8fbdaf80 | atagen | 2026-09-28 09:10 UTC | 17 | } |