Error Codes Wiki

HTTP 405 Method Not Allowed — Wrong HTTP Method

Warning4xx client error

Overview

HTTP 405 Method Not Allowed means the HTTP method used is not supported for this endpoint.

Key Details

  • Status: 405 Method Not Allowed
  • Category: 4xx Client Error
  • The HTTP method is not supported
  • Response includes Allow header listing valid methods

Common Causes

  • Sending POST to a GET-only endpoint
  • Using DELETE on a read-only resource
  • Incorrect API method in client code
  • Server configuration blocking certain methods

Steps

  1. 1Check the Allow response header for valid methods
  2. 2Verify the correct HTTP method in your request
  3. 3Review API documentation for the endpoint
  4. 4Ensure server/proxy is not blocking the method

Tags

http-status4xx-client-errorhttp-405httpstatus-code

More in 4xx Client Error

Frequently Asked Questions

Check the Allow header in the 405 response.