Skip to content

MethodNotAllowed ​

Type: response

Description ​

Unsupported method.

TypeScript Definition ​

typescript
MethodNotAllowed: {{
            headers: {
                /** @description Supported HTTP methods. */
                Allow?: string;
                [name: string]: unknown;
            };
            content: {
                "application/json": {
                    message: string;
                    /** @constant */
                    code: "method-not-allowed";
                    /** @constant */
                    success: false;
                    details?: string;
                };
            };
        };
        /** @description Requested resource not found */
}

OpenAPI Schema ​

json
{
  "description": "Unsupported method.",
  "headers": {
    "Allow": {
      "schema": {
        "type": "string"
      },
      "description": "Supported HTTP methods."
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "const": "method-not-allowed"
          },
          "success": {
            "type": "boolean",
            "const": false
          },
          "details": {
            "type": "string"
          }
        },
        "required": [
          "message",
          "code",
          "success"
        ]
      }
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: