atagen

malice

public
Star0
Watch0
7371424b2f055abe9920fadad7d1e66fc85462c2
2
ssh://brewery@pls.lobotomise.me:33/atagen/malice.git

Blame: web/src/lib/wire-status.ts

973f8fbdaf80atagen2026-09-28 09:10 UTC1
export const STATUS_BY_KIND: Record<string, number> = {
973f8fbdaf80atagen2026-09-28 09:10 UTC2
  bad_request: 400,
973f8fbdaf80atagen2026-09-28 09:10 UTC3
  not_found: 404,
973f8fbdaf80atagen2026-09-28 09:10 UTC4
  conflict: 409,
973f8fbdaf80atagen2026-09-28 09:10 UTC5
  busy: 429,
973f8fbdaf80atagen2026-09-28 09:10 UTC6
  too_large: 413,
973f8fbdaf80atagen2026-09-28 09:10 UTC7
  unsupported: 415,
973f8fbdaf80atagen2026-09-28 09:10 UTC8
  engine_stopped: 502,
973f8fbdaf80atagen2026-09-28 09:10 UTC9
  upstream: 502,
973f8fbdaf80atagen2026-09-28 09:10 UTC10
  unauthorized: 401,
973f8fbdaf80atagen2026-09-28 09:10 UTC11
  store_in_use: 409
973f8fbdaf80atagen2026-09-28 09:10 UTC12
};
973f8fbdaf80atagen2026-09-28 09:10 UTC13
973f8fbdaf80atagen2026-09-28 09:10 UTC14
export function statusForKind(kind: string): number {
973f8fbdaf80atagen2026-09-28 09:10 UTC15
  return STATUS_BY_KIND[kind] ?? 502;
973f8fbdaf80atagen2026-09-28 09:10 UTC16
}