Skip to content

The route does not take this method

Type
https://pyeconomics.dev/problems/method-not-allowed
HTTP status
405
Exit code
1 (internal error)
Raised as
MethodNotAllowedError

What it means

The route exists but does not take the request's method.

What to do

Use a method the route takes; the Allow header lists them.

Every pyeconomics surface reports a failure as a problem in the form of RFC 9457: its type, title, HTTP status and detail, and the exit code the command line returns. A problem never holds a key, a file path, a host or an upstream URL. Every problem type.