405 Method Not Allowed

You can't do that here.

What it properly means

The server knows the request method but the target resource does not support it, such as DELETE on something that cannot be deleted.

Class
4xx Client error: you fucked up
Defined in
RFC 9110, section 15.5.6

Get one yourself

This endpoint really answers with 405. Point your client at it and see what it does.

curl -i https://httpcodes.dev/api/405

People mix this up with

  • 405501 Not Implemented

    Not allowed here, or not built at all?

    405 means the server understands the method but this resource does not take it. 501 means the server does not support that method anywhere.