HTTP-Statuscode

Ein dreistelliger Statuscode des Webservers
Ein HTTP-Statuscode ist ein dreistelliger Code, der vom Webserver auf eine Anfrage des Clients zurückgeschickt wird. Die beiden bekanntesten HTTP-Statuscodes sind 200 für eine erfolgreiche Anfrage und 404 für den Zugriff auf ein nicht vorhandenes Dokument.

Die erste Ziffer des Statuscodes gibt Auskunft über seinen grundsätzlichen Zweck. Zum Beispiel sind alle HTTP-Statuscodes, die mit 1 beginnen, als Information ausgelegt. Und solche mit eine 5 am Anfang, stellen eine serverseitige Fehlermeldung dar.

Folgend eine Auflistung der definierten Statuscodes im Rahmen von HTTP:

'''1xx: Informationen'''
* 100: Continue
* 101: Switching Protocols
'''2xx: Erfolgreiche Operation'''
* 200: OK
* 201: Created
* 202: Accepted
* 203: Non-Authoritative Information
* 204: No Content
* 205: Reset Content
* 206: Partial Content
'''3xx: Umleitung'''
* 300: Multiple Choices
* 301: Moved Permanently
* 302: Found
* 303: See Other
* 304: Not Modified
* 305: Use Proxy
* 307: Temporary Redirect
'''4xx: Client-Fehler'''
* 400: Bad Request
* 401: Unauthorized
* 402: Payment Required (in HTTP/1.1 noch nicht spezifiziert)
* 403: Forbidden
* 404: Not Found
* 405: Method Not Allowed
* 406: Not Acceptable
* 407: Proxy Authentication Required
* 408: Request Time-out
* 409: Conflict
* 410: Gone
* 411: Length Required
* 412: Precondition Failed
* 413: Request Entity Too Large
* 414: Request-URI Too Large
* 415: Unsupported Media Type
* 416: Requested range not satisfiable
* 417: Expectation Failed
'''5xx: Server-Fehler'''
* 500: Internal Server Error
* 501: Not Implemented
* 502: Bad Gateway
* 503: Service Unavailable
* 504: Gateway Time-out
* 505: HTTP Version not supported