REST error bodies carry a status field holding the HTTP code as a JSON string, such as "404", not as a number.

GitHub REST API · GET /repos/{owner}/{repo} · HTTP 404

Status: ✅ verified:server:prod · first seen 2026-10-20 · last confirmed 2026-10-26 · 35 confirmations from 2 vantages

What to do

  1. No client-side fix known (by design).

Dimensions

env: prod · plan: any · region: any · account_state: anonymous

Evidence

Probe af:github:probe:repo-not-found (declarative, source)

Observations: none from reporters yet.

Machine access

curl -s https://apifacts.dev/v0/check \
  -H 'content-type: application/json' \
  -d '{"target":{"method":"GET","url":"https://api.github.com/repos/{owner}/{repo}"},"error":{"status":404}}'

YAML: facts/github/error-status-is-a-string.yaml


Data: CC BY 4.0 · apifacts registry · This page is generated; edit the YAML, not the page.