HTTP Errors

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

On this page

HTTP 405 Method Not Allowed means the endpoint doesn't accept the HTTP method you used. The endpoint exists but won't accept your method — e.g. sending GET to a URL that only allows POST. The server lists the methods it does accept in the Allow header. It's also written “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

The endpoint exists but won't accept your method — e.g. sending GET to a URL that only allows POST. The server lists the methods it does accept in the Allow header. In short, 405 status code is the endpoint doesn't accept the HTTP method you used.

Why scrapers see 405

Scrapers see 405 when they call an endpoint with the wrong verb: GETting a form action that requires POST, POSTing to a read-only resource, or using HEAD where it isn't supported. It also appears when a WAF normalizes or rejects unusual methods.

How to fix a 405 error

Read the Allow header in the 405 response — it lists exactly which methods are permitted. Switch to a supported verb and match the expected content type and body. Inspect the real site in DevTools to copy the exact method, headers, and payload the browser sends. If a WAF is rejecting the method itself, routing the request through a real-browser flow with Web Unblocker 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 (4xx) error — the server is pointing at something in your request.

Does a 405 mean I'm blocked when scraping?

Not necessarily. 405 points at your request, not a ban — but anti-bot layers sometimes return it instead of a 403, so check the response body and headers.

How do I fix a 405 error?

The endpoint doesn't accept the http method you used is the cause, so the fix targets that. Correct the offending part of the request, then retry.

What's the difference between 405 and 404?

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

Last updated: 2026-05-28