# `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.

```json
{
  "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](/docs/errors), [the API reference](/docs/api) and [the docs](/docs).
