method_not_allowed

A Multiplayer API error, sent with HTTP 405. Status: the Multiplayer API is in private alpha; this code is part of its published contract.

When

The path exists, but not with this HTTP method.

What to do

Use the method the API reference lists for this path.

The answer

Every error is a JSON body with a stable error code. Clients act on the codes they know and treat any other code as a failure of its HTTP status, and keep fields they do not know.

{
  "error": "method_not_allowed",
  "detail": "A sentence that is safe to show.",
  "next": "Use the method the API reference lists for this path.",
  "docsUrl": "https://lobbylab.gg/docs/errors/method_not_allowed"
}

See also: every error code, the API reference and the docs.