HTTP status codes
What each status code means, and what usually causes it when you are debugging an API, a proxy or an ingress controller.
Runs in your browser
| Code | Name | Meaning and common causes |
|---|
Debugging tips
- 502 usually means the proxy reached the backend but got a bad or no response: the app crashed, the port is wrong, or the pod is not ready.
- 504 means the backend was too slow. Compare the proxy timeout with how long the request really takes.
- 401 is "who are you?" (missing or invalid credentials). 403 is "I know who you are, and the answer is no".
- Use
curl -sv https://host/path -o /dev/nullto see the status line and headers.