501Status code
5xxServer error
YesCacheable by default
RFC 9110 §15.6.2Defined in
Common causes
- Custom HTTP method the server does not know
What to do
Use a supported method.
Example response
HTTP/1.1 501 Not Implemented
Content-Type: application/problem+json
{"status":501,"title":"Not Implemented"}
Returning 501 in code
Express res.status(501).json({ … });
Flask return jsonify(…), 501
PHP http_response_code(501);
Go w.WriteHeader(501)
nginx return 501;