atagen

malice

public
Star0
Watch0
2c899da1562b65dc510bf13e5a1dd2a880b016ce
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,
7cca1d5628d1atagen2026-10-24 07:36 UTC11
  forbidden: 403,
20fe182f3204atagen2026-10-26 05:50 UTC12
  store_in_use: 409,
20fe182f3204atagen2026-10-26 05:50 UTC13
  key_backup_exists: 409
973f8fbdaf80atagen2026-09-28 09:10 UTC14
};
973f8fbdaf80atagen2026-09-28 09:10 UTC15
973f8fbdaf80atagen2026-09-28 09:10 UTC16
export function statusForKind(kind: string): number {
973f8fbdaf80atagen2026-09-28 09:10 UTC17
  return STATUS_BY_KIND[kind] ?? 502;
973f8fbdaf80atagen2026-09-28 09:10 UTC18
}