Interactive HTTP Status Codes Reference & Header Tester
Comprehensive directory of 1xx to 5xx response codes with official RFC 9110 specifications, caching directives, real-world troubleshooting guides (403 vs 401, 502 bad gateway fix), and instant client-side header simulation.
Forbidden
Protocol Specifications & Meaning
Indicates that the server understood the request but refuses to authorize it. Unlike 401 Unauthorized, re-authenticating with the same credentials will make no difference because the user's role, IP, WAF, or scopes do not have permission for the resource.
Common Causes & Real-World Scenarios
- •User is authenticated, but lacks 'admin' or required RBAC permission scope.
- •CORS Preflight origin blocked or forbidden.
- •Cloudflare WAF / AWS Shield IP geo-blocking rule triggered.
- •Missing CSRF token on state-changing POST request.
- •File permission 403 Forbidden on Linux Nginx (worker user cannot read static folder).
Troubleshooting & Developer Resolution Guide
Wire HTTP Response Preview
HTTP/1.1 403 Forbidden Content-Type: application/json Content-Length: 104 { "error": "forbidden", "message": "You lack the required 'billing:write' permission scope." }
Server Implementation Example
if (!req.user.roles.includes('admin')) {
return res.status(403).json({ error: 'Insufficient permissions' });
}HTTP Protocol Architecture & Troubleshooting FAQ
Essential references for web developers, DevOps engineers, and system architects.
Why does RFC 9110 replace older RFC 7231 and RFC 2616?
Published in June 2022, RFC 9110 (HTTP Semantics) is the definitive contemporary standard for the HTTP protocol. It clarifies ambiguity in earlier RFCs, standardizes caching semantics (RFC 9111), and formalizes behavior across HTTP/1.1, HTTP/2, and HTTP/3 multiplexed streams.
Why should 401 Unauthorized always send WWW-Authenticate?
RFC 9110 §15.5.2 requires that an origin server send a WWW-Authenticate challenge header in 401 responses. This tells the client which authentication scheme (Bearer, Basic, Digest, DPoP) and realm are expected, enabling automated client token renewal.
What is the difference between 502 Bad Gateway and 504 Gateway Timeout?
In a 502, the reverse proxy reached the upstream server, but the upstream immediately refused the connection or returned corrupted data (often crashed). In a 504, the upstream accepted connection, but took longer than the proxy read timeout (e.g. 60 seconds) to complete.
Are response headers inspected safely in this tool?
Yes. In strict compliance with ToolsAA development guidelines, this page runs 100% on the client side ('use client'). No headers, tokens, cookies, or payloads are ever dispatched to external servers. Inspection takes place solely within your browser memory.