Handling of HTTP 404, 405 and 500 status codes.