Quick answer
501 Not Implemented is the HTTP status a server returns when it does not support the functionality a request needs, most often because it does not recognise or implement the request method. Typical triggers are a POST or PROPFIND sent to a simple file server, a Transfer-Encoding the server cannot decode, and API operations a service does not offer. Unlike 405, which means the method is known but not allowed for that URL, a 501 concerns what the server can do at all.
01What does 501 Not Implemented mean?
RFC 9110 defines 501 as the status that "indicates that the server does not support the functionality required to fulfill the request", and names the typical case: the server does not recognise the request method and cannot support it for any resource. Every general-purpose server must support GET and HEAD; all other methods are optional. A 501 is therefore usually the answer to POST, PUT, PATCH, a WebDAV method such as PROPFIND, or an invented method.
Methods are not the only trigger: RFC 9112 (HTTP/1.1) asks for 501 when a request uses a transfer coding the server does not understand, and APIs use the code for operations they do not offer. Any server on the path can send it, including a proxy.
RFC 9110 also lists 501 as heuristically cacheable, like 404 and 405: a shared cache may store a 501 that carries no caching headers, which matters once a CDN sits in front of the site.
02Which 501 message do you see?
The text that comes with a 501 usually names the software that produced it. Match yours, then read the section for your case.
| Message | Shown by | Read next |
|---|---|---|
| Error code: 501. Message: Unsupported method ('POST'). | Python's built-in http.server, for every method except GET and HEAD | Unsupported method ('POST') in Python |
| Not Implemented. FOO not supported for current URL. | Apache httpd, for a method it does not recognise | PROPFIND, PATCH and custom methods |
| 501 Not Implemented, with nginx/1.x in the footer | nginx itself, for a Transfer-Encoding it does not support | Unsupported transfer encoding |
| Unsupported transfer encoding, as plain text | Go's net/http server | Unsupported transfer encoding |
| A 501 from an API, often named UNIMPLEMENTED | APIs built on gRPC or Google's error codes, for an operation the service does not offer | 501 from an API |
| This page isn't working. example.com is currently unable to handle this request. HTTP ERROR 501 | Chrome, when the server sent the 501 with an empty body | What visitors can do |
| 501 Unsupported method ('PROPFIND'), with Server: nginx | An application behind a proxy, which passes the status line through | 501 behind a reverse proxy, CDN or WAF |
03501 vs 405 vs 500: what a 501 is not
The same request gets different answers from different servers, which is why 501 and 405 are so often confused. These are typical answers from three servers: nginx serving static files, Python's http.server serving a directory, and an Express 5 application with only a GET route for /.
- nginx serves only GET and HEAD from static files and answers any other uppercase method with 405
- Python answers 501 whenever it has no do_ handler for the method, even for POST
- Express sends neither 405 nor 501 by default: unhandled requests get a 404 ("Cannot PROPFIND /"), and Node.js rejects unknown method names with 400 first
- Apache, according to its source code, answers known methods such as PATCH and PROPFIND with 405 from its default handler, and unrecognised ones with 501 and the log entry "AH00135: Invalid method in request"
| Request | nginx 1.22.1, static files | Python 3.11 http.server | Express 5.2.1, no matching route |
|---|---|---|---|
| POST / | 405 Not Allowed | 501 Unsupported method ('POST') | 404 Not Found |
| PUT, PATCH or DELETE / | 405 Not Allowed | 501 Unsupported method | 404 Not Found |
| PROPFIND / | 405 Not Allowed | 501 Unsupported method ('PROPFIND') | 404 Not Found |
| FOO / (an invented method) | 405 Not Allowed | 501 Unsupported method ('FOO') | 400 Bad Request |
| get / (lowercase) | 400 Bad Request | 501 Unsupported method ('get') | 400 Bad Request |
| GET / with Transfer-Encoding: gzip | 501 Not Implemented | 200 OK | 200 OK |
04"Error code: 501, Unsupported method ('POST')" in Python
This is the 501 most developers meet first. python3 -m http.server is a file server: its SimpleHTTPRequestHandler implements only GET and HEAD, and every other method gets 501 with the message Unsupported method. A form that posts to it, a WebDAV client and an upload script all end here.
Python even puts its message where the reason phrase normally goes, so the response starts with HTTP/1.0 501 Unsupported method ('POST'). Its documentation warns that http.server is not recommended for production. The fix is a server that handles the method, such as a framework route for the form.
$ curl -si -X POST http://127.0.0.1:8000/
HTTP/1.0 501 Unsupported method ('POST')
Server: SimpleHTTP/0.6 Python/3.11.2
Connection: close
Content-Type: text/html;charset=utf-8
Content-Length: 357
<p>Error code: 501</p>
<p>Message: Unsupported method ('POST').</p>
<p>Error code explanation: 501 - Server does not support this operation.</p>
# the server's own log
127.0.0.1 - - [11/Nov/2026 20:29:51] code 501, message Unsupported method ('POST')
127.0.0.1 - - [11/Nov/2026 20:29:51] "POST / HTTP/1.1" 501 -05"Not supported for current URL": PROPFIND, PATCH and custom methods
Apache's 501 page reads "Not Implemented", followed by the method and "not supported for current URL." Outside development servers, method 501s and 405s mostly have three causes.
A WebDAV client pointed at a plain web server. Clients that mount a URL as a network drive use PROPFIND, which retrieves the properties of a resource and, for a folder, of its members; a server without WebDAV answers 501 or 405. nginx's DAV module handles only PUT, DELETE, MKCOL, COPY and MOVE, and its documentation says clients that need other WebDAV methods will not work with it: in the test, PROPFIND to a location with dav_methods enabled still got 405. Point the client at a real WebDAV endpoint.
A method a server or proxy does not know. PATCH (RFC 5789) and custom API methods pass modern servers, but strict configurations and older intermediaries can reject them. Apache 2.4.24 and later can reject every method not registered with RegisterHttpMethod (HttpProtocolOptions RegisteredMethods); its documentation advises against that on forward proxies, which cannot know what the origin servers support.
A client that sends the wrong method. Method names are case-sensitive, so a lowercase get is an unknown method: nginx and Node.js answered it with 400, Python with 501, and Apache's documentation lists a lowercase method among requests that lead to 501.
# the method in question: status line, server and Allow header
curl -s -o /dev/null -D - -X PROPFIND https://example.com/files/ | grep -iE '^(HTTP|server|allow)'
# a method every general-purpose server must support, for comparison
curl -s -o /dev/null -D - https://example.com/files/ | grep -iE '^(HTTP|server)'
# ask which methods the URL supports (not every server answers OPTIONS)
curl -s -o /dev/null -D - -X OPTIONS https://example.com/files/ | grep -iE '^(HTTP|allow)'06"501 Not Implemented" from nginx, or "Unsupported transfer encoding"
The second standard cause has nothing to do with methods. A request can declare how its body is framed in a Transfer-Encoding header, and every HTTP/1.1 recipient must be able to decode the chunked coding. RFC 9112 says an unknown coding should get 501, but also that a request whose final coding is not chunked must get 400, so servers differ.
In the test, nginx 1.22.1 answered 501 Not Implemented to Transfer-Encoding: gzip, gzip, chunked and identity, and Go's net/http answered 501 with the plain-text body Unsupported transfer encoding. Python's http.server and Node.js ignored the header on a GET. A chunked HTTP/1.0 request got 400 from nginx, a rejection its changelog lists under 1.21.2.
Browsers do not send such headers, so this 501 points at a client library, a device, a script or a proxy in between. The trap for operators: nginx logs the reason at the info level, so with the default error level only the access log shows the 501. Set error_log to info for a few minutes to see the lines below. Do not relax the server, because RFC 9112 warns that request smuggling exploits differences in how recipients parse message framing; make the client send Content-Length, or chunked alone.
[info] client sent unknown "Transfer-Encoding": "gzip" while reading client request headers, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "localhost"
[info] client sent unknown "Transfer-Encoding": "gzip, chunked" while reading client request headers, client: 127.0.0.1, server: , request: "POST / HTTP/1.1", host: "localhost"
[info] client sent HTTP/1.0 request with "Transfer-Encoding" header while reading client request headers, client: 127.0.0.1, server: , request: "POST / HTTP/1.0", host: "localhost"
# the access log entry for the first request: only the 501 is visible here
127.0.0.1 - - [11/Nov/2026:20:35:01 +0000] "GET / HTTP/1.1" 501 165 "-" "-"07501 from an API: endpoints that are not implemented
APIs send 501 on purpose, for a route that is declared but not built or an operation a version does not offer. Google's canonical error codes, used by gRPC, define UNIMPLEMENTED as "The operation is not implemented or is not supported/enabled in this service" and map it to HTTP 501; Werkzeug, under Flask, has a NotImplemented exception with code 501.
For a client, retrying rarely helps: unlike a 503 Service Unavailable, a 501 is not temporary, and the same request gets the same answer until the service changes. Check the API version, base URL and documentation, and whether the feature must be enabled for your account.
For an API owner, the code follows what is missing: 404 when the path does not exist, 405 with an Allow header when it exists but not for this method, and 501 when the service does not offer the operation at all. An explicit 501 is clearer than a stub that throws and becomes a 500.
08"HTTP ERROR 501" in Chrome: what visitors can do
When a 501 arrives with an empty body, Chrome shows its own page instead: "This page isn't working", "example.com is currently unable to handle this request" and HTTP ERROR 501. A browser opens pages with GET and submits ordinary forms with GET or POST, so a 501 on a normal site means the site's server does not handle a request the site itself triggered, such as a form that posts to a static host.
There is little to fix on your side. Reload once, try a private window or another browser to rule out an extension, and switch off a VPN or corporate proxy. If the error stays, send the site owner the time, the address and what you clicked.
09501 behind a reverse proxy, CDN or WAF
With a reverse proxy in front, first find out who wrote the 501. Proxies pass an upstream's status line through: in the test, nginx relayed Python's 501 with its reason phrase Unsupported method ('PROPFIND') but replaced the Server header with its own. Compare a request through the public hostname with one sent straight to the origin with curl --resolve, as in the 502 Bad Gateway guide, and look for the 501 in each hop's access log.
Because 501 is heuristically cacheable, a CDN may keep a 501 for a GET that has no Cache-Control header; send Cache-Control: no-store with 501s for anything you plan to implement soon, or purge the cache once you have. And if your application needs PATCH or a WebDAV method, every proxy, CDN and WAF on the path has to let it through.
Unusual methods and odd Transfer-Encoding values in the logs can also come from scanners. If your site only uses GET, HEAD and POST, rejecting other methods at the edge keeps that traffic away from the origin.
Questions
Frequently asked questions
- 01Is a 501 error my fault?
- Almost never. In a normal browser the cause is the site's server or a proxy in between; reload, try another browser or network, and tell the site owner if it persists. If you wrote the client, check the method name and any Transfer-Encoding header you send.
- 02What is the difference between 501 and 405?
- 405 Method Not Allowed means the server knows the method but this URL does not support it, and the response must list the methods that work in an Allow header. 501 Not Implemented means the server does not support the method, or another feature the request needs, for any resource. Servers draw the line differently: for the same PROPFIND, nginx answered 405 and Python's http.server 501.
- 03Why does python -m http.server return 501 for POST?
- Because it is a static file server: its handler implements only GET and HEAD, and any other method gets 501 Unsupported method. Use a web framework or another server for forms and uploads; Python's documentation also says http.server is not recommended for production.
- 04Do 501 errors hurt SEO?
- Only if search engines receive them. Google's documentation says 5xx responses make its crawlers slow down, content returned with a 5xx status is ignored, and URLs that persistently return a server error are removed from the index. Crawlers request pages with GET, so a 501 on a page URL is a fault worth fixing quickly.
Sources
Sources and verification
The configuration and commands on this page are examples, not a tested recipe. Adapt them to your system and check them before use.
- 01RFC 9110: HTTP Semantics, sections 9.1 (methods), 15.5.6 (405 Method Not Allowed) and 15.6.2 (501 Not Implemented) · RFC Editor
- 02RFC 9112: HTTP/1.1, sections 6.1 (Transfer-Encoding), 6.3 (message body length), 7.1 (chunked) and 11.2 (request smuggling) · RFC Editor
- 03RFC 4918: HTTP Extensions for WebDAV, section 9.1 (PROPFIND) · RFC Editor
- 04501 Not Implemented · MDN
- 05http.server: HTTP servers · Python documentation
- 06Lib/http/server.py: handle_one_request · CPython
- 07Apache core features: HttpProtocolOptions · Apache Software Foundation
- 08server/core.c: default_handler · Apache httpd source
- 09modules/http/http_protocol.c: canned error strings · Apache httpd source
- 10Module ngx_http_dav_module · nginx.org
- 11Core functionality: error_log · nginx.org
- 12nginx changes (1.21.2: HTTP/1.0 requests with Transfer-Encoding) · nginx.org
- 13HTTP: Event 'clientError' · Node.js
- 14Express FAQ: How do I handle 404 responses? · Express
- 15net/http server.go: unsupported transfer encoding · Go source
- 16google/rpc/code.proto: UNIMPLEMENTED · Google APIs
- 17Werkzeug HTTP exceptions: NotImplemented and MethodNotAllowed · Pallets
- 18Flask: Handling Application Errors · Pallets
- 19localized_error.cc: HTTP error pages · Chromium
- 20http_error_navigation_throttle.h: error page for empty 4xx and 5xx responses · Chromium
- 21error_page_strings.grdp: error page headings and messages · Chromium
- 22How HTTP status codes affect Google's crawlers · Google Search Central
Last updated