Skip to main content

HTTP Error Response Codes

note

These codes compliment ordinary HTTP response codes returned in 'response_code'

CodeErrorDescription
1HTTP_ERROR_BAD_HOSTIndicates that the URL used in an HTTP request is invalid or cannot be resolved by the DNS server.
2HTTP_ERROR_NO_SOCKETIndicates that there was a failure in establishing a network socket connection when making an HTTP request.
3HTTP_ERROR_CANT_CONNECTIndicates that the client is unable to establish a connection to the server when making an HTTP request. This error can occur due to various reasons, including network connectivity issues or unavailability of the server.
4HTTP_ERROR_CANT_WRITEIndicates that there was a failure in writing data during an HTTP request. This error can occur for various reasons related to the client, server, or network.
5HTTP_ERROR_CONTENT_TOO_BIGIndicates that the size of the content being sent in the HTTP request exceeds the maximum limit allowed by the server or the server's configuration.
6HTTP_ERROR_MALFORMED_RESPONSEIndicates that the HTTP response received from the server is in an unexpected or invalid format. This error suggests that the response does not comply with the HTTP protocol standards.

Some Common HTTP Error Response Codes

1xx Informational

Code
100Continue
101Switching Protocols
102Processing

2xx Success

Code
200OK
201Created
204No Content
206Partial Content

3xx Redirection

Code
301Moved Permanently
302Found
304Not Modified
307Temporary Redirect

4xx Client Errors

Code
400Bad Request
401Unauthorized
403Forbidden
404Not Found
405Method Not Allowed
429Too Many Requests

5xx Server Errors

Code
500Internal Server Error
502Bad Gateway
503Service Unavailable
504Gateway Timeout