HTTP Errors

What Is the 405 Status Code? (Method Not Allowed)

On this page

HTTP 405 Method Not Allowed means the page exists, but it won't accept the HTTP method (the verb, like GET or POST) you used to ask for it. A common example: you send a GET request to a URL that only handles POST. The server replies with 405 and lists the methods it does accept in a response header called Allow. You may also see this written as “HTTP 405” or just “405 error” / “405 status code.”

Quick facts

Status code405
MeaningMethod Not Allowed
Category4xx Client Error
Common causes (scraping)Wrong verb (GET vs POST), unsupported HEAD, WAF blocking the method
Right responseFix the request / retry with backoff; for disguised blocks use a real-browser unblock

What a 405 Method Not Allowed means

Every HTTP request uses a method (also called a verb) that says what you want to do: GET reads a page, POST submits data, and so on. A 405 means the URL is real, but it doesn't accept the verb you sent — for example, sending GET to a URL that only allows POST. The server tells you which verbs are allowed in the Allow header. In short: the endpoint doesn't accept the HTTP method you used.

Why scrapers see 405

Scrapers usually trigger a 405 by using the wrong verb: doing a GET on a form action that requires POST, POSTing to a resource that is read-only, or using HEAD (a GET that returns headers but no body) where it isn't supported. It can also appear when a WAF — a web application firewall that filters incoming traffic — rewrites or rejects methods it considers unusual.

How to fix a 405 error

Start with the Allow header in the 405 response — it spells out exactly which methods are permitted. Switch to a supported verb, and make sure your content type and request body match what the endpoint expects. To get this exactly right, open the real site in your browser's DevTools and copy the method, headers, and payload the browser actually sends. If a WAF is the thing rejecting your method, routing the request through a real-browser flow with Web Access API avoids the mismatch.

Related terms

Concept map

How 405 Status Code (405 Method Not Allowed) connects

The terms most directly tied to this one. Hover a node to see its neighbours, click to preview, drag to rearrange.

0 terms · 0 connections
You are here · HTTP Errors
Building map…

Frequently asked questions

Is 405 a client or server error?

It's a client-side error (the 4xx family), which means the server is flagging something about your request rather than a fault on its own end.

Does a 405 mean I'm blocked when scraping?

Not necessarily. A 405 points at your request, not at a ban. That said, some anti-bot layers return a 405 instead of a 403, so check the response body and headers to be sure.

How do I fix a 405 error?

The cause is that the endpoint doesn't accept the HTTP method you used, so the fix targets exactly that: correct the offending part of the request (usually the verb), then retry.

What's the difference between 405 and 404?

A 404 means the URL doesn't exist at all. A 405 means the URL does exist but doesn't support the method you used — the resource is there, your verb is wrong.

Last updated: 2026-05-31