505Status code
5xxServer error
NoCacheable by default
RFC 9110 §15.6.6Defined in
Common causes
- Very old or very new protocol version
What to do
Use HTTP/1.1, HTTP/2 or HTTP/3.
Example response
HTTP/1.1 505 HTTP Version Not Supported
Content-Type: application/problem+json
{"status":505,"title":"HTTP Version Not Supported"}
Returning 505 in code
Express res.status(505).json({ … });
Flask return jsonify(…), 505
PHP http_response_code(505);
Go w.WriteHeader(505)
nginx return 505;