Not Implemented
5xx Server Error
Last updated:
The server does not support the functionality required to fulfill the request.
Description
Different from 405: 405 says 'this URL doesn't support this method'; 501 says 'this server doesn't understand this method at all'.
When to use
Return 501 for unsupported HTTP methods like TRACE or CONNECT if you don't implement them.
Specification
RFC 9110 §15.6.2
Examples
HTTP response
HTTP/1.1 501 Not Implemented
Content-Type: application/json
{"error":"Not Implemented"}Node.js (Express)
res.status(501).json({ error: "Not Implemented" });Go (net/http)
w.WriteHeader(http.StatusNotImplemented)
Python (Flask)
return jsonify({"error": "Not Implemented"}), 501