• When a reader tries to post a comment but fails to provide a correct captcha code, the plugin returns HTTP status 500 (internal server error). Since the problem is in the data supplied by the user and not with the server, the plugin should return status code 400 instead.

    Looks fairly easy to fix as wp_die supports giving the HTTP status code as an argument.

    Error code 500 causes our log monitoring to give false error alerts.

  • The topic ‘Should return error code 400 instead of 500 on wrong code’ is closed to new replies.