• I’ve modified the comments section of the WordPress install to customize it soemwhat. It raises errors as approproate but when calling wp_die, the documentation states that the default http response should be 500 but I seem to get a 405 response. I amended wp_die so that it reads:

    wp_die($wpError, "Oops!", array("response" => "500"));

    But still no joy.

    Having had a little think about this, 500 indicates a server error but a 4xx response indicates a client error. Is it actually the case that the 405 is correct since it is the user that has caused the error?

The topic ‘Response Code 405 given when it should be 500’ is closed to new replies.