HTTP Status Codes: Codes verständlich erklärt | Beyond Media (2024)

HTTP Status Codes: Codes verständlich erklärt | Beyond Media (1)

Sie sind allgegenwärtig und jeder ist ihnen schon mal begegnet, zumindest wenn das Internet einem nicht fremd ist. Die Rede ist von HTTP Status Codes. Während die einen sichtbar und visuell aufbereitet sind, bekommt man die anderen eher nicht zu Gesicht. Wir möchten Ihnen im folgenden Beitrag die wichtigsten Status Codes zeigen und ihre Bedeutung verständlich erklären.HTTP Status Codes – Erklärung und Funktion

Ein HTTP Status Code wird immer dann ausgeliefert, wenn vom Server, auf dem die Webseite liegt, eine neue Information abgerufen wird. So tippt man ganz simpel „beyond-media.de“ in seine Browserleiste ein und bestätigt seine Eingabe; unser Server empfängt diese Anfrage und bearbeitet sie. Kann der Server die Startseite finden, erhält man einen 200 Status Code, der besagt, dass alles „OK“ ist und die Seite gefunden wurde. Am Ende blickt man auf die Startseite von Beyond Media, die über den Browser ausgegeben wird. Das Ganze sollte dann nach einem Selbstversuch wie folgt aussehen:

Ganz bewusst nimmt man HTTP Status Codes jedoch selten wahr und auch nur wenige sind für den typischen Endnutzer ersichtlich. Der bekannte 404-Fehler sollte jedoch schon einmal auf jedem Computer oder Smartphone angezeigt worden sein – er erscheint, wenn der Inhalt, der angefragt wurde nicht auf dem Server gefunden werden konnte. Besonders ärgerlich ist das, wenn man einen interessanten Inhalt hinter einem Link erwartet und dann nichts anderes sieht, als eine 404-Seite.

Für diesen Prozess nutzen Browser heutzutage HTTP, also das Hypertext Transfer Protocol. Während der Seitenaufbau für gewöhnlich uneingeschränkt funktioniert, so werden manchmal aber auch, wie oben bereits erwähnt, keine Inhalte gefunden oder Seiten wurden umgeleitet – hierfür gibt es in der Welt des Internet einige unterschiedliche HTTP Status Codes, die jeweils eine dreistellige Nummer zwischen 100 und 599 besitzen. Wir bringen Ihnen nun die wichtigsten der rund 40 Codes näher und erklären ihre Bedeutung.

HTTP Codes in Klassen gegliedert

Eingeteilt werden können die HTTP Status Codes in insgesamt fünf Klassen – die 100er, 200er, 300er, 400er und die 500er Status Codes. Während die 100er Codes lediglich beschreiben, dass der Server eine Anfrage erhalten hat, zeigen die 200er an, dass eine Anfrage erfolgreich ausgeliefert werden könnte. 300er Status Codesstehen in der Regel für eine verschobene Internetseite, die nun unter einer anderen URL auffindbar ist. Die 400er Codes sind Fehler, die bei einer Anfrage aufgetreten sind und die letzte Klasse fasst andere Fehlermeldungen zusammen, die dann als 500er an den Nutzer ausgeliefert werden.

Auf einen Blick – HTTP Status Codes Übersicht

200 – OKDieser Status Code steht für eine erfolgreiche serverseitige Ausgabe einer Anfrage. Erhält man diesen Code ist alles in bester Ordnung.
301 – PermanentlyTritt dieser Fehler auf, so ist das angefragte Dokument dauerhaft unter einer anderen Adresse zu finden. Der 301-Code steht für eine permanente Weiterleitung zum neuen Dokument, das dann in Folge mit einem 200-Code ausgegeben wird, sollte der Redirect vernünftig eingebaut worden sein.
302 – FoundErhält man als Nutzer einen 302 Code vom Server, so wurde das Dokument unter dieser Adresse nicht gefunden, ist jedoch temporär unter einer anderen Adresse zu finden.
403 – ForbiddenDer Server hat die Anfrage zwar erhalten und konnte sie verarbeiten, hat jedoch nicht die erforderliche Berechtigung die Anfrage vollständig abzurufen.
404 – Not foundEine 404-Fehlermeldung beschreibt ein nicht gefundenes Dokument.
500 – Server ErrorEin 500 HTTP Status Code zeigt einen internen Fehler an. Hier ist entweder der Server falsch konfiguriert, das Skript fehlerbehaftet oder die Rechte zum Ausführen sind nicht ausreichend.
503 – UnavailableDieser Code wird ausgegeben, wenn der Server überlastet ist, Wartungsarbeiten im Gange sind oder eine anderweitige temporäre Sperrung besteht.

Wieso sind HTTP-Codes so wichtig für SEO?

Wie der Name Status Code schon sagt, wird der Suchmaschine auf diese Weise mitgeteilt, wie es um die Inhalte einer Webseite steht. Erkennt Google eine 404-Seite, so wird das vermerkt. Kommt der Google Bot nun noch ein paar weitere Male auf genau diese Seite und erhält den gleichen Status, so fliegt die Webseite in der Regel aus dem Index. Nun ist es wichtig richtig mit Google zu kommunizieren und keinen wertvollen Traffic oder wichtige Rankings zu verlieren. Mit einer 301-Weiterleitung ist es oftmals schon getan, wenn man die 404-Seite auf einen ähnlichen Inhalt verweist.

Wichtig ist auch die Unterscheidung zwischen dem Status Code 301 und 302. Stellt man seine Webseite beispielsweise von http auf https um, so sollten alle Seiten mit einem 301 Redirect auf die gleichnamige https-URL umgeleitet werden, sonst gehen wertvolle Rankings verloren. Eine 302-Weiterleitung vererbt keinen Linkjuice. Was Sie aus SEO-Sicht außerdem bei einem Umzug auf https beachten sollten, haben wir in diesem Beitrag zurSSL-Umstellungfür Sie zusammengefasst.

Sie stoßen auf Ihrer eigenen Webseite auf fehlerhafte Unterseiten und die 404-Fehler in der Google Search Console häufen sich? Lassen Sie sich von uns helfen, wir alsSEO AgenturundWebentwicklungsagenturmit jahrelanger Erfahrungen. Profitieren Sie von unserem Know-How und kontaktieren Sie uns noch heute!

HTTP Status Codes: Codes verständlich erklärt | Beyond Media (2024)

FAQs

What are HTTP status codes? ›

HTTP status codes are three-digit responses from the server to the browser-side request. Everyone has probably gotten the classic 404 page-not-found error. That is an HTTP client error status code and there are a lot more of them.

What is the Httpresponse response status code? ›

HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped in five classes: Informational responses ( 100 – 199 ) Successful responses ( 200 – 299 )

What is the HTTP status code for partial content? ›

The HTTP 206 Partial Content success status response code indicates that the request has succeeded and the body contains the requested ranges of data, as described in the Range header of the request.

Do HTTP status codes matter? ›

The HTTP code indicates whether the request was successful or if there were any errors. Not only do HTTP status codes form a vital part of web browsing, but they're critical for maintaining an SEO-friendly website.

What is the HTTP status code for warning? ›

Arbitrary information that should be presented to a user or logged. This warn-code is similar to the warn-code 199 and additionally indicates a persistent warning.

What is normal HTTP response code? ›

Status Code 200 – This is the standard “o*k” status code for a successful HTTP request. The response that is returned is dependent on the request.

What is an HTTP response? ›

An HTTP response is made by a server to a client. The aim of the response is to provide the client with the resource it requested, or inform the client that the action it requested has been carried out; or else to inform the client that an error occurred in processing its request.

How do I choose HTTP status code? ›

Choose the appropriate HTTP status code for each response, based on the nature of the response. For example, use the 200 OK status code for successful requests, the 201 Created status code for requests that result in the creation of a new resource, and the 400 Bad Request status code for requests with malformed data.

What are the HTTP status codes for redirect? ›

There are several types of redirection status codes, including 301, 302, 307, and 308. Each of these serves a specific purpose and has its own set of rules. Understanding these codes is important for maintaining the integrity of the website and providing a good user experience.

What is HTTP accepted status code? ›

The HyperText Transfer Protocol (HTTP) 202 Accepted response status code indicates that the request has been accepted for processing, but the processing has not been completed; in fact, processing may not have started yet.

What is the HTTP status code for no content? ›

HTTP Status 204 (No Content) indicates that the server has successfully fulfilled the request and that there is no content to send in the response payload body.

What is the HTTP status code limit? ›

Each IP address can make a maximum of 100 requests every 15 minutes. If a client exceeds this limit, the server responds with HTTP Status Code 429, indicating that the client has sent too many requests in a given amount of time.

What is HTTP status code 401 and 404? ›

Compared to the 401 error code, error 404 indicates a Not Found response status code. If a website is showing this error message, it typically indicates that there is a broken or dead link. This means that the resource needed to access or run the website is either temporarily or permanently unavailable.

What are status codes 2xx, 3xx, 4xx, 5xx in API? ›

2xx successful – the request was successfully received, understood, and accepted. 3xx redirection – further action needs to be taken in order to complete the request. 4xx client error – the request contains bad syntax or cannot be fulfilled. 5xx server error – the server failed to fulfil an apparently valid request.

What is the difference between 403 and 402? ›

While both codes indicate that access to a resource is restricted, the distinction lies in the reason for the restriction. The 402 code specifically implies that payment is required, whereas the 403 code implies that access is forbidden due to other reasons, such as insufficient permissions or authentication failure.

What is HTTP 200 vs 201 vs 202? ›

Use HTTP status code 200 for successful requests that retrieve or update a resource. Use HTTP status code 201 for successful requests that create a new resource on the server. Use HTTP status code 202 for requests that have been accepted for processing but the processing has not yet been completed.

Top Articles
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated:

Views: 6516

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.