English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Zunächst werde ich jeden Statuscode und das zugehörige Wort überprüfen (z.B.:200 OK、304 Kein Modified、404 Gefunden),dann das nachfolgende große Textbeschreibung verstehen, ein kurzes Absatz zusammenfassen und alle zusammen erinnern. Wenn der Browser Statuscodes meldet, wird in der Regel das Wort nach dem Statuscode hinzugefügt.
Wenn der Browser von einem Webserver eine Dienstleistung anfordert, können Fehler oder Umleitungen auftreten.
Nachfolgend wird eine Reihe möglicher HTTP-Statusmeldungen aufgelistet, die zurückgegeben werden könnten:
Message: | Description: |
---|---|
100 Weiter | Der Server hat nur einen Teil der Anfrage empfangen, aber der Server hat die Anfrage nicht abgelehnt, daher sollte der Client den Rest der Anfrage senden. |
101 Protokollumstellung | Serverprotokollumstellung: Der Server wird den Protokollwechsel des Kunden auf ein anderes Protokoll befolgen. |
103 Checkpoint | The resume request is recommended for recovery failure in PUT or POST requests. |
Message: | Description: |
---|---|
200 OK | Erfolgreich (Dies ist die Standardantwort auf erfolgreiche HTTP-Anfragen.) |
201 Erstellt | Die Anfrage wurde erfolgreich erstellt und gleichzeitig eine neue Ressource wurde erstellt. |
202 Akzeptiert | Die zu verarbeitende Anfrage wurde akzeptiert, aber die Verarbeitung ist noch nicht abgeschlossen. |
203 Nein-Autoritative Information | Die Anfrage wurde erfolgreich bearbeitet, aber einige Antwortköpfe könnten falsch sein, da eine Kopie eines anderen Dokuments verwendet wurde. |
204 Kein Inhalt | Die Anfrage wurde erfolgreich bearbeitet, aber kein neuer Dokument wurde zurückgegeben. Der Browser sollte das ursprüngliche Dokument weiter anzeigen. Wenn der Benutzer regelmäßig die Seite aktualisiert und der Servlet sicherstellen kann, dass das Dokument ausreichend neu ist, ist dieser Statuscode nützlich. |
205 Inhalt zurücksetzen | Die Anfrage wurde erfolgreich bearbeitet, aber kein neuer Dokument wurde zurückgegeben. Der Browser sollte das angezeigte Inhalt zurücksetzen. Dies wird verwendet, um den Browser zu zwingen, den Inhalt der Formularfelder zu löschen. |
206 Teilweiser Inhalt | Der Kunde hat eine GET-Anfrage mit einem Range-Header gesendet, und der Server hat sie abgeschlossen. |
Message: | Description: |
---|---|
300 Mehrere Auswahlmöglichkeiten | Mehrere Auswahlmöglichkeiten. Liste von Links. Der Benutzer kann einen Link auswählen, um das Ziel zu erreichen. Bis zu fünf Adressen sind erlaubt. |
301 Dauerhaft verschoben | Die angeforderte Seite wurde auf einen neuen URL verschoben. |
302 Gefunden | Die angeforderte Seite wurde vorübergehend auf einen neuen URL verschoben. |
303 Siehe auch | Die angeforderte Seite ist unter einem anderen URL erreichbar. |
304 Nicht geändert | The document was not modified as expected. The client has a buffered document and has sent a conditional request (usually provided with If-Modified-The 'If-Modified-Since' header indicates that the client only wants documents that are newer than the specified date). The server informs the client that the previously buffered document can still be used. |
305 Use Proxy | The document requested by the client should be retrieved through the proxy server indicated by the Location header. |
306 Switch Proxy | Currently not in use, but the code is still retained. |
307 Temporary Redirect | The requested page has been temporarily moved to a new URL. |
308 Resume Incomplete | The resume request is recommended for recovery failure in PUT or POST requests. |
Message: | Description: |
---|---|
400 Bad Request | The server was unable to understand the request due to a syntax error. |
401 Unauthorized | The request is legal, but access to the requested page is prohibited. This is because the requested page requires authentication, and the client did not provide or authentication failed. |
402 Payment Required | This code cannot be used yet. |
403 Forbidden | The request is legal, but access to the requested page is prohibited. |
404 Not Found | The server cannot find the requested page. |
405 Method Not Allowed | The method specified in the request is not allowed. |
406 Not Acceptable | The response generated by the server cannot be accepted by the client. |
407 Proxy Authentication Required | The user must first authenticate using a proxy server so that the request will be processed. |
408 Request Timeout | The request exceeded the server's waiting time. |
409 Conflict | The request cannot be completed due to a conflict. |
410 Gone | The requested page is not available. |
411 Length Required | Content-The 'Content-Length' is not defined. If this content is not present, the server will not accept the request. |
412 Precondition Failed | The precondition in the request is evaluated by the server as failed. |
413 Request Entity Too Large | The server will not accept the request because the requested entity is too large. |
414 Request-URI Too Long | The server will not accept the request due to a long URL. This happens when a POST request is converted to a GET request with a long query string. |
415 Unsupported Media Type | The server will not accept the request because the media type is not supported. |
416 The requested range is not satisfiable | The client requested a partial document, but the server cannot provide the requested part. |
417 Expectation Failed | The server cannot satisfy the client's request for the specified request header. |
Message: | Description: |
---|---|
500 Internal Server Error | The request was not completed. The server encountered an unpredictable situation. |
501 Not Implemented | The request was not completed. The server does not support the requested function, or the server cannot complete the request. |
502 Bad Gateway | The request was not completed. When the server acts as a gateway or proxy, it received an invalid response from the upstream server. |
503 Service Unavailable | The server is currently unavailable (overloaded or down). |
504 Gateway Timeout | Gateway Timeout. When the server acts as a gateway or proxy, it did not receive a timely response from the upstream server. |
505 HTTP Version Not Supported | The server does not support the HTTP protocol version specified in the request. |
511 Network Authentication Required | Users must provide authentication to gain access to the network entry point. |