Ga naar hoofdinhoud

HTTP-foutcodes

notitie

Deze codes vullen normale HTTP-responscodes aan (in response_code).

CodeFoutOmschrijving
1HTTP_ERROR_BAD_HOSTOngeldige/ongeresolveerde host in de URL.
2HTTP_ERROR_NO_SOCKETMislukte socketinitialisatie voor de aanvraag.
3HTTP_ERROR_CANT_CONNECTKan geen verbinding maken met de server (bijv. netwerkproblemen of server onbereikbaar).
4HTTP_ERROR_CANT_WRITEFout bij het schrijven van data tijdens de aanvraag.
5HTTP_ERROR_CONTENT_TOO_BIGVerzoekinhoud is groter dan toegestaan door de server/configuratie.
6HTTP_ERROR_MALFORMED_RESPONSERespons is ongeldig of onverwacht van formaat en voldoet niet aan HTTP-standaarden.

Veelvoorkomende HTTP-responscodes​

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