☰

What Is a 501 Not Implemented Error and How Do You Fix It?

Laptop on a desk showing a 501 Not Implemented error page next to a terminal window

A 501 Not Implemented error means a server in the request path doesn’t support what the request asks for, most often the HTTP method, such as PATCH, PUT or a custom verb. The site usually still works. To fix it, find which server answered (CDN, load balancer, web server or app), then change the request or enable the method there.

On November 27, 2026, we ran the Dotcom-Tools Web Server Test from five locations with different HTTP methods: PATCH, GET and OPTIONS against Microsoft Learn, a public site behind the Akamai CDN, plus httpbin.org endpoints that return a 501, a 405 and a 200 on purpose. This guide uses those results to show which fields tell you where a 501 came from.

Key takeaways

  • Run the failing method and a plain GET on the same URL from several locations. In our test, PATCH got a 501 from all five locations, and GET on the same URL got a 200 from all five.
  • Read the Wait (TTFB) column. The CDN’s 501 came back in 9 to 16 ms from every location, much faster than any request that reached the origin. Together with the headers, that showed the edge answered, not Microsoft’s servers.
  • Read Server and the other response headers. The edge 501 said Server: AkamaiGHost and lacked a header that every response from Microsoft’s origin carried.
  • A 405 Method Not Allowed means the server knows the method, and the Allow header lists what the URL accepts.
  • For a 501 that appears after a deploy, a one-off test isn’t enough. Dotcom-Monitor can run the same write requests on a schedule and alert you.

What Does 501 Not Implemented Mean?

HTTP 501 is a server error. RFC 9110 defines the 501 status code as the server not supporting “the functionality required to fulfill the request.” It’s the expected response when a server doesn’t recognize the request method and can’t support it for any resource.

Every general-purpose server must support GET and HEAD. Other methods are optional, so a 501 on PATCH, PUT, DELETE or PROPFIND is normal on a server that never implemented them. RFC 9112 adds one more case for HTTP/1.1: a request with a Transfer-Encoding the server doesn’t understand should also get a 501, even on a GET.

And a 501 is cacheable by default, so a stored 501 for a GET can outlive the fix unless the response carries cache headers.

What Does a 501 Look Like When You Test It From Five Locations?

We sent one request per location from Chicago, London, Frankfurt, Singapore and Sydney. Each row is one Web Server Test run on November 27, 2026, between 15:11 and 15:13 UTC.

RequestHTTPWait (TTFB) rangeWhat answered
PATCH https://learn.microsoft.com/en-us/501 everywhere9 to 16 msAkamai edge (Server: AkamaiGHost)
GET, same URL200 everywhere23 to 131 msEdge cache, with Microsoft’s origin headers
OPTIONS, same URL204 everywhere41 to 184 msPassed through to the origin (x-azure-ref in a same-day curl check)
GET https://httpbin.org/status/501501 everywhere21 to 242 mshttpbin’s application, on purpose
PATCH https://httpbin.org/get405 everywhere21 to 230 mshttpbin’s application, with Allow: GET, HEAD, OPTIONS
PATCH https://httpbin.org/patch200 everywhere22 to 233 mshttpbin’s application (control)

Dotcom-Tools Web Server Test, HTTPS, five locations, November 27, 2026. Wait (TTFB) is the time between sending the request and the first byte of the response. It doesn’t include DNS, connect or TLS time.

Dotcom-Tools Web Server Test result for a PATCH request to learn.microsoft.com showing HTTP 501 from Chicago, London, Frankfurt, Singapore and Sydney with TTFB between 9 and 16 ms PATCH to Microsoft Learn: a 501 from all five locations, with TTFB of 9 to 16 ms. Read the HTTP and TTFB columns first.

Only the method changed the answer. The same URL returned 200 to GET and 204 to OPTIONS from every location. Only PATCH got the 501. When one method fails and GET works, the cause is method support somewhere in the path, not an outage.

The 501 came from the nearest edge. Each location reached a different Server IP, and connect time was 1 to 4 ms, so every test location had an Akamai server close by. The 501 arrived 9 to 16 ms after the request. OPTIONS, which went on to Microsoft’s servers, took 41 to 184 ms. A 501 that arrives faster than any request to the origin was produced at the edge.

The headers named the layer. The 501 carried Server: AkamaiGHost, Akamai-Cache-Status: Error from child (Akamai’s own cache status) and a 364-byte page titled “Unsupported Request” that reads “PATCH to http://learn.microsoft.com/en-us/ not supported.” The Chicago 200 for GET carried x-azure-ref and x-buildversion headers from Microsoft’s own stack. The 501 had neither. We can’t see Microsoft’s CDN settings, only that the edge answered without forwarding the request.

Request detail from Chicago for the PATCH test showing status 501 Not Implemented, Wait (TTFB) of 8.7 ms and the response header Server AkamaiGHost The request detail for Chicago. Wait (TTFB) is 8.7 ms (9 ms in the table), and the Server header names the CDN.

An application 501 looks different. httpbin’s /status/501 endpoint returns a 501 from its own code. There the Wait (TTFB) matched the connect time from every location: 21 ms from Chicago, 242 ms from Singapore. That is one round trip to httpbin’s US-hosted service. The response had no Server header, an empty body and the same access-control-* headers as every other httpbin response. When a 501 looks like your app’s other responses and takes a full round trip to the origin, look in your code.

Request detail from Chicago for httpbin.org/status/501 showing status 501 Not Implemented, Wait (TTFB) of 21.2 ms, content-length 0 and access-control response headers An application 501 from httpbin: no Server header, an empty body and a wait of one round trip to the origin.

How Do You Check a 501 With Dotcom-Tools?

Run the failing request, then run the same URL with GET and OPTIONS as controls. Each test costs 2 credits per location, and no account is needed for three locations.

Step 1: Enter the URL and the Failing Method

Open the Web Server Test and paste the address into URL. Set Method to what the failing client sends. The tool offers GET, HEAD, POST, PUT, PATCH, DELETE and OPTIONS.

For an API, open Advanced options. Put the JSON in Request body, set Content type, and use + Add header for headers such as Authorization. Each location sends the request once, so use a test record or a staging endpoint for writes.

Web Server Test form with the URL learn.microsoft.com/en-us, Method set to PATCH and Advanced options open showing Request body, Content type and Request headers The Web Server Test form with Method set to PATCH and Advanced options open.

Step 2: Pick Locations on Different Continents

Click Change under Test from these locations and choose cities in different regions, such as Chicago, Frankfurt and Singapore. You get three locations without an account and five with a free account.

Step 3: Read the HTTP and TTFB Columns

Click Run Test. The result table has one row per location with HTTP, DNS, Connect, TLS, TTFB, Download and Total. A 501 from every location means the rule isn’t tied to one region. A 501 from some locations only points to edge servers with different settings, or to a regional route to a different backend.

Then compare TTFB with Connect. Each location opens a new connection, so Connect is one network round trip. If TTFB is close to Connect and Connect grows with distance, one server far away answered. If TTFB is a few milliseconds everywhere and Connect is near zero, a nearby edge answered.

Step 4: Open a Location and Read the Headers

Click a row to see Request from that location. The Response panel shows Status, Server IP and Wait (TTFB). Below it, Response headers lists every header the server sent. Look for Server, Via, CF-Ray, X-Cache, x-amz-cf-id and any header your own app always sets. A 501 without your app’s usual headers probably came from a layer in front of it. Confirm in the app log.

Step 5: Rerun With GET and OPTIONS

Run the same URL with GET, then with OPTIONS. If GET returns 200 and only your method fails, the path doesn’t support that method. If GET fails too, look at the app or at request headers. An OPTIONS response may include an Allow header that lists the methods the server accepts.

Web Server Test result for GET on learn.microsoft.com showing HTTP 200 from five locations with TTFB between 23 and 131 ms The GET control on the same URL: 200 from every location, so only the method was refused.

Step 6: Test the Origin Without the CDN

If the origin has its own public host name, run the Web Server Test on it with the same method. Otherwise send the request to the origin IP with curl, which keeps the right host name and certificate:

curl -i -X PATCH --resolve www.example.com:443:203.0.113.10 \
  https://www.example.com/api/items/7

A 501 through the public URL and a 200 at the origin means the CDN, WAF or load balancer refused the method. Search the CDN, WAF and origin logs for the time, method and path of the test request to confirm which one logged the 501.

What Causes a 501, and Which Field Shows It?

CauseTest to runField to readWhat you’ll see
CDN, WAF or proxy doesn’t pass the methodFailing method, then GET, from 3 to 5 locationsHTTP, TTFB, Server501 on the method, 200 on GET; TTFB of a few ms; a CDN in Server; your app’s headers missing
Stubbed or unfinished API handlerFailing method on that route and on a working routeHTTP, Response headers, Size501 on one route only; your app’s usual headers and error format; TTFB like other app requests
Method known but not allowed on this URLFailing methodHTTP, Allow405, not 501, with Allow listing the accepted methods
Web server without the module (WebDAV, PUT on files)PUT or DELETE through the public URL and at the originHTTP, Server501 or 405 from the origin too, with the web server’s own error page
Unsupported Transfer-EncodingNot testable here; use curlStatus in curl’s output501 even on GET when the header is added
Misspelled, custom or WebDAV methodNot testable here; use curlStatus in curl’s output501 from servers that don’t know the method
A proxy or security product on your sideFailing method from test locationsHTTP200 or 405 from every test location while you get 501

But the test can’t send everything. The Web Server Test offers seven methods, so it can’t reproduce a typo like POT or a WebDAV method. It also refuses to set Transfer-Encoding, Expect, Host and a few other connection headers, and it speaks HTTP/1.1 only. For those cases, use curl -v -X METHOD to see the exact request line and headers. A request with an Expect value the server can’t meet should get a 417, not a 501.

Request detail for a PATCH to httpbin.org/get showing 405 Method Not Allowed and the response header allow GET, HEAD, OPTIONS A 405 for comparison: the server knows PATCH, and the Allow header lists what this URL accepts.

What Is the Difference Between 501, 405 and 400?

CodeNameWhat it meansRetry unchanged?
400Bad RequestThe server can’t process the request because it’s malformed, such as bad syntax or invalid framingNo. Fix the request
405Method Not AllowedThe server knows the method, but this URL doesn’t accept it. The response must include an Allow headerNo. Use a method from Allow
501Not ImplementedThe server doesn’t support the method or feature for any resourceNo. Change the request or the server

Many 501s in APIs should be 405s. If your API supports PATCH on some routes, return 405 with Allow on the others, and keep 501 for methods your server has nowhere. Edges also use other codes. In a curl check the same day, the Akamai edge in front of Microsoft Learn returned 411 Length Required to a POST with no body, not a 501.

How Do You Fix a 501 Not Implemented Error by Stack?

If the client sent a typo or a method your API never offered, fix the client. If a server in the path refuses a method your API needs, fix that server. Then rerun the same Web Server Test and check the HTTP column.

How to Fix a 501 on a CDN or WAF

This is the case when the test shows a CDN in Server and a TTFB of a few milliseconds. Check the CDN or WAF configuration for the methods allowed on that path, and allow the methods your API uses. Test the origin with Step 6 to confirm it accepts the method before you open it at the edge.

Cloudflare’s docs tie its own 501 to Workers. A route served by a Worker returns “Error 501: not implemented” for a method outside the Workers runtime. On a normally proxied Cloudflare site, a 501 usually came from your origin, even though the response says Server: cloudflare. Fix the Worker’s handling of that method, or the origin if no Worker runs on the route.

How to Fix a 501 in Nginx

Nginx rarely sends 501 for a method. For static files it returns 405 to methods other than GET and HEAD, and with proxy_pass it forwards other methods upstream. Its own 501 comes from a request Transfer-Encoding it doesn’t support, logged at info level as client sent unknown "Transfer-Encoding". Fix the client so it sends chunked or a Content-Length and compresses bodies with Content-Encoding. If the test shows Server: nginx and the error log is empty, the upstream app sent the 501; add $upstream_status to your log_format to confirm. To accept PUT, DELETE, MKCOL, COPY or MOVE on files, Nginx needs ngx_http_dav_module and dav_methods.

How to Fix a 501 in Apache

Apache answers 501 to a method no module handles, logged as AH00135: Invalid method in request, and to an unknown Transfer-Encoding (AH01585). For a custom method, register it in the server config on Apache 2.4.24 or later:

RegisterHttpMethod PURGE REPORT

For WebDAV methods such as PROPFIND, load mod_dav and set Dav On for the path.

How to Fix a 501 in IIS

Microsoft documents a 501 for methods IIS doesn’t know as by design. Check the method name in the IIS log’s cs-method field and switch the client to a supported method. A 405 in sc-status instead points to a handler or verb setting for that path.

How to Fix a 501 on AWS

An Application Load Balancer returns 501 when Transfer-Encoding is anything other than chunked or identity. AWS’s troubleshooting page also lists a WebSocket request sent to a target group with target optimizer turned on. In the ALB access log, elb_status_code 501 with target_status_code ”-” means the load balancer created the response. A target_status_code of 501 means your target sent it. We found no documented 501 that Amazon API Gateway generates by itself, so with API Gateway check the Lambda function or HTTP backend behind it.

How to Fix a 501 in Your Own API

This is the httpbin pattern, with a full round trip to the origin and your app’s usual headers. Search the code for 501 and constants such as NOT_IMPLEMENTED, StatusNotImplemented or UNIMPLEMENTED. Generated server stubs return 501 until someone writes the handler, and HTTP gateways in front of gRPC services map the UNIMPLEMENTED status to 501. Finish the handler or remove the route from your API description, and send Cache-Control: no-store on any 501 you return on purpose.

How Do You Catch a 501 After a Deploy?

A 501 usually appears after a change, such as a new CDN or WAF rule, a server migration, a client library upgrade or an API release with unfinished routes. A GET uptime check keeps passing while PATCH and DELETE fail, because it never sends them.

A free Dotcom-Tools account keeps your test history, and Dotcom-Tools paid plans can repeat a Web Server Test on a schedule with the Schedule button next to Run Test. For checks around the clock, Dotcom-Monitor, from the company behind Dotcom-Tools, runs REST API monitoring from 30+ locations as often as every minute. A monitor can chain calls, such as login, fetch, change and confirm, and assert the status and headers of each step. You can trigger a run from your CI pipeline after a deploy and alert by email, SMS, Slack, PagerDuty or Teams when a step returns 501.

Frequently Asked Questions About 501 Errors

Is a 501 Error My Fault?

Usually not, if you’re a visitor. Run the Web Server Test with the same method. If the test locations get a different answer than you do, a proxy, VPN or security product on your network is refusing the request.

Does a 501 Error Hurt SEO?

Only if crawlers get it. Crawlers use GET, so a 501 on PATCH or PUT doesn’t affect them. If a page returns 501 to GET, Google treats it like other 5xx errors. Crawling slows, and pages that keep failing are dropped from the index.

Which 501 Check Should You Run First?

Run the failing method and a GET on the same URL from three locations before you change any setting. If only the method fails and the 501 comes back in a few milliseconds with a CDN in Server, fix the edge. If the 501 takes a full round trip to your origin and carries your app’s headers, fix the handler. If you get a 405 with Allow, the server is working as designed and the client needs a different method.

Start with the free Web Server Test. It takes a URL, a method and three locations, with no sign-up. For related errors, see how to read a 504 Gateway Timeout and a 401 Unauthorized error in the same test.

Sources

Check a server's response

Free HTTP/HTTPS test from several locations: status code, redirects, TTFB, DNS, connect and TLS timing.

Run a free server test