Problem type

Method is not allowed

HTTP 405 ยท method_not_allowed

What it means

The API answers with HTTP 405 Method Not Allowed and the application/problem+json document below when the condition is Method is not allowed. The document's type member is https://screenrig.ai/problems/method-not-allowed, the address of this page, and its code member is method_not_allowed.

What to do

This path does not accept this method; the Allow header lists the ones it does. If a screenrig CLI sent it, update the CLI.

Should you retry?

The retryable member appears only on HTTP 5xx problems, so this one has none. Follow the steps under What to do before sending the request again.

Example response

Most routes answer with the error in the first entry of errors, and the document members instance and request_id beside it. The type, code, title and status of this problem type are fixed; detail varies per request, and hint is the registry default unless the handler sets a more specific one.

http
HTTP/1.1 405 Method Not Allowed
Content-Type: application/problem+json

{
  "errors": [
    {
      "status": 405,
      "code": "method_not_allowed",
      "type": "https://screenrig.ai/problems/method-not-allowed",
      "title": "Method is not allowed",
      "detail": "What went wrong in this request.",
      "hint": "This path does not accept this method; the Allow header lists the ones it does. If a screenrig CLI sent it, update the CLI."
    }
  ],
  "instance": "INSTANCE",
  "request_id": "REQUEST_ID",
  "server_time": "2026-01-01T00:00:00Z",
  "action": "hold_lkg"
}

Player-facing routes (the screen and media routes, the pairing streams and the probe routes) answer with the same members flat at the top level:

http
HTTP/1.1 405 Method Not Allowed
Content-Type: application/problem+json

{
  "type": "https://screenrig.ai/problems/method-not-allowed",
  "title": "Method is not allowed",
  "status": 405,
  "detail": "What went wrong in this request.",
  "instance": "INSTANCE",
  "code": "method_not_allowed",
  "request_id": "REQUEST_ID",
  "action": "hold_lkg",
  "server_time": "2026-01-01T00:00:00Z",
  "errors": [],
  "hint": "This path does not accept this method; the Allow header lists the ones it does. If a screenrig CLI sent it, update the CLI."
}

Player action

The Player action class is hold_lkg: Keep playing the last-known-good content and poll slowly.

Reference

Codemethod_not_allowed
HTTP status405 Method Not Allowed
Typehttps://screenrig.ai/problems/method-not-allowed
Player actionhold_lkg