Skip to content

request.method_not_allowed

The route does not accept this HTTP method

Type https://mthds.ai/errors/request.method_not_allowed
Family request: The HTTP request itself, before any run.
Domain input: the caller acts, by changing the request or its inputs
Retry no: repeating the operation fails the same way
HTTP status 405
Raised as a problem document, sent as the body of an HTTP response or kept in a run's record

What it means

The route exists, but not for the HTTP method the request used, which usually means that the client and the runner implement different protocol versions.

What to do

Check the HTTP method the protocol defines for the route, and use a client that matches the protocol version the runner reports in GET /version.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the caller, and the second for any other reader.

Reader Kind Detail
The domain's actor upgrade Use a client written for the protocol version this runner reports in GET /version, which sends each route the HTTP method the protocol defines.
Any other reader upgrade Upgrade the client or the runner so that both implement the same protocol version.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

This route does not accept the request's HTTP method.

Parameters

This code declares no parameters, so its problems carry no params.

See also