Δωρεάν διαδικτυακά εργαλείαVariedTools.com

Κωδικοί κατάστασης HTTP

Αναζήτηση κωδικών κατάστασης HTTP

Αναζητήστε και περιηγηθείτε σε κωδικούς κατάστασης HTTP και WebDAV (1xx–5xx). Κάθε κωδικός εμφανίζει σύντομη περιγραφή· κλικ στο εικονίδιο συνδέσμου για να ανοίξετε την τεκμηρίωση MDN για αυτή την κατάσταση. Χρήσιμο κατά το debug API, χειρισμό απαντήσεων ή σύνταξη HTTP clients και servers.

Αναζήτηση κατά κωδικό, όνομα ή περιγραφή

1xx Informational

100Continue

The server has received the request headers and the client should send the request body.

101Switching Protocols

The server is switching protocol as requested by the client.

102Processing

The server is processing the request but no response is available yet. (WebDav)

103Early Hints

The server returns some response headers before the final HTTP message.

2xx Success

200OK

Standard response for successful HTTP requests.

201Created

The request has been fulfilled, resulting in the creation of a new resource.

202Accepted

The request has been accepted for processing but processing has not been completed.

203Non-Authoritative Information

The content was modified by a transforming proxy.

204No Content

The server successfully processed the request and is not returning any content.

205Reset Content

The server asks the client to reset the document view.

206Partial Content

The server is delivering only part of the resource due to a Range header.

207Multi-Status

The message body contains multiple response codes (e.g. WebDAV). (WebDav)

208Already Reported

DAV binding members were already enumerated in a preceding part. (WebDav)

226IM Used

The server has fulfilled a GET request for the resource.

3xx Redirection

300Multiple Choices

Multiple options for the resource that the client may follow.

301Moved Permanently

This and all future requests should be directed to the given URI.

302Found

Temporary redirect to another URI.

303See Other

The response can be found under another URI using GET.

304Not Modified

The resource has not been modified since the version in the request headers.

305Use Proxy

The requested resource is available only through a proxy.

306Switch Proxy

No longer used; originally meant subsequent requests should use the specified proxy.

307Temporary Redirect

The request should be repeated with another URI; future requests may still use the original URI.

308Permanent Redirect

The request and all future requests should be repeated using another URI.

4xx Client Error

400Bad Request

The server cannot or will not process the request due to a client error.

401Unauthorized

Authentication is required and has failed or has not been provided.

402Payment Required

Reserved for future use (e.g. digital cash or micropayment).

403Forbidden

The request was valid but the server is refusing action; insufficient permissions.

404Not Found

The requested resource could not be found.

405Method Not Allowed

The request method is not supported for the requested resource.

406Not Acceptable

The resource can generate only content not acceptable per the Accept headers.

407Proxy Authentication Required

The client must first authenticate itself with the proxy.

408Request Timeout

The server timed out waiting for the request.

409Conflict

The request could not be processed because of conflict (e.g. edit conflict).

410Gone

The resource is no longer available and will not be available again.

411Length Required

The request did not specify the length of its content, which is required.

412Precondition Failed

The server does not meet one of the preconditions in the request.

413Payload Too Large

The request is larger than the server is willing or able to process.

414URI Too Long

The URI provided was too long for the server to process.

415Unsupported Media Type

The request entity has a media type the server or resource does not support.

416Range Not Satisfiable

The client asked for a portion of the file the server cannot supply.

417Expectation Failed

The server cannot meet the requirements of the Expect request header.

418I'm a Teapot

The server refuses to brew coffee with a teapot (RFC 2324).

421Misdirected Request

The request was directed at a server that cannot produce a response.

422Unprocessable Entity

The request was well-formed but could not be followed due to semantic errors.

423Locked

The resource that is being accessed is locked.

424Failed Dependency

The request failed due to failure of a previous request.

425Too Early

The server is unwilling to risk processing a request that might be replayed.

426Upgrade Required

The client should switch to a different protocol (e.g. TLS).

428Precondition Required

The origin server requires the request to be conditional.

429Too Many Requests

The user has sent too many requests in a given amount of time.

431Request Header Fields Too Large

Header fields are too large for the server to process.

451Unavailable For Legal Reasons

Access denied due to a legal demand (e.g. censorship).

5xx Server Error

500Internal Server Error

A generic error when an unexpected condition was encountered.

501Not Implemented

The server does not recognize the request method or cannot fulfill it.

502Bad Gateway

The server, as a gateway or proxy, received an invalid response from upstream.

503Service Unavailable

The server is temporarily unavailable (overloaded or down for maintenance).

504Gateway Timeout

The server, as a gateway or proxy, did not receive a timely response from upstream.

505HTTP Version Not Supported

The server does not support the HTTP protocol version used in the request.

506Variant Also Negotiates

Content negotiation for the request results in a circular reference.

507Insufficient Storage

The server is unable to store the representation needed to complete the request.

508Loop Detected

The server detected an infinite loop while processing the request.

510Not Extended

Further extensions to the request are required for the server to fulfill it.

511Network Authentication Required

The client needs to authenticate to gain network access.

Τι είναι οι κωδικοί κατάστασης HTTP;

Οι κωδικοί κατάστασης HTTP είναι τριψήφιοι αριθμοί που επιστρέφονται από έναν διακομιστή στην πρώτη γραμμή μιας απόκρισης HTTP. Υποδεικνύουν εάν ένα αίτημα πέτυχε, απέτυχε ή χρειάζεται περαιτέρω ενέργεια. Το πρώτο ψηφίο ορίζει την κλάση: 1xx (πληροφοριακό), 2xx (επιτυχία), 3xx (ανακατεύθυνση), 4xx (σφάλμα πελάτη) και 5xx (σφάλμα διακομιστή). Μαζί με την αιτιολογική φράση (π.χ. "Δεν βρέθηκε" για το 404), βοηθούν τους πελάτες και τους προγραμματιστές να κατανοήσουν τι συνέβη και πώς να χειριστούν την απόκριση.

Αυτό το εργαλείο παραθέτει τους κοινούς κωδικούς κατάστασης HTTP και WebDAV ανά κατηγορία. Μπορείτε να περιηγηθείτε σε όλους τους κωδικούς ή να κάνετε αναζήτηση με αριθμό, όνομα ή περιγραφή. Κάθε καταχώριση συνδέεται με την επίσημη τεκμηρίωση MDN (Mozilla Developer Network) για αυτόν τον κωδικό. Χρησιμοποιήστε το κατά τον εντοπισμό σφαλμάτων API, τον χειρισμό σφαλμάτων στην εφαρμογή σας ή την εκμάθηση της σημασίας ενός κωδικού κατάστασης που συναντήσατε.

Πώς λειτουργεί η αναζήτηση κωδικού κατάστασης HTTP

  1. Περιήγηση ανά κατηγορία
    Οι κωδικοί ομαδοποιούνται σε: 1xx Πληροφοριακό, 2xx Επιτυχία, 3xx Ανακατεύθυνση, 4xx Σφάλμα πελάτη και 5xx Σφάλμα διακομιστή. Κάντε κύλιση στη λίστα για να δείτε τον κωδικό αριθμό, το όνομα και μια σύντομη περιγραφή. Οι κωδικοί που δεν είναι HTTP (π.χ. WebDAV) φέρουν ετικέτα.

  2. Αναζήτηση
    Πληκτρολογήστε στο πλαίσιο αναζήτησης για να φιλτράρετε κατά κωδικό (π.χ. "404"), όνομα (π.χ. "Απαγορευμένο") ή περιγραφή (π.χ. "timeout"). Τα αποτελέσματα εμφανίζονται σε μία ενότητα "Αποτελέσματα αναζήτησης". Εκκαθαρίστε την αναζήτηση για να εμφανιστούν ξανά όλες οι κατηγορίες.

  3. Ανοίξτε την τεκμηρίωση MDN
    Κάντε κλικ στο εικονίδιο του συνδέσμου δίπλα σε οποιονδήποτε κώδικα για να ανοίξετε την αντίστοιχη σελίδα στο developer.mozilla.org. Εκεί μπορείτε να διαβάσετε τις πλήρεις προδιαγραφές, τα παραδείγματα και τη συμπεριφορά του προγράμματος περιήγησης ή του διακομιστή.

Πότε να χρησιμοποιήσετε μια αναφορά κωδικού κατάστασης HTTP

  • Ανάπτυξη API REST: Επιστρέψτε τον σωστό κωδικό κατάστασης από το API σας (π.χ. 201 Δημιουργήθηκε, 400 ακατάλληλο αίτημα, 401 μη εξουσιοδοτημένο, 404 δεν βρέθηκε, 429 πάρα πολλά αιτήματα), ώστε οι πελάτες να μπορούν να χειρίζονται σωστά τις απαντήσεις.
  • Εντοπισμός σφαλμάτων: Όταν ένας πελάτης λαμβάνει έναν απροσδόκητο κωδικό (π.χ. 502 Bad Gateway, 503 Service Unavailable), αναζητήστε το νόημα και τις τυπικές αιτίες.
  • Πελάτες HTTP και διαχείριση σφαλμάτων: Αντιστοιχίστε κωδικούς κατάστασης σε μηνύματα χρήστη ή λογική επανάληψης (π.χ. δοκιμάστε ξανά στο 503, μην προσπαθήσετε ξανά στο 400).
  • Μάθηση: Κατανοήστε τη διαφορά μεταξύ ανακατευθύνσεων 301 και 302 ή πότε να χρησιμοποιήσετε 409 Σύγκρουση έναντι 422 μη επεξεργάσιμη οντότητα.

Συμβουλές και περιορισμοί

  • Κάλυψη: Αυτό το εργαλείο περιλαμβάνει τους πιο συνηθισμένους κωδικούς κατάστασης HTTP και επιλεγμένους κωδικούς κατάστασης WebDAV. Ορισμένοι αποκλειστικοί ή λιγότερο συνηθισμένοι κωδικοί ενδέχεται να μην εμφανίζονται.
  • Περιγραφές: Οι περιγραφές είναι σύντομες περιλήψεις. Για έγκυρες λεπτομέρειες και ακμές, χρησιμοποιήστε τον σύνδεσμο MDN.
  • Αναζήτηση: Η αναζήτηση δεν κάνει διάκριση πεζών-κεφαλαίων και ταιριάζει οπουδήποτε στον κωδικό αριθμό, το όνομα ή την περιγραφή.

Χρησιμοποιήστε αυτήν τη δωρεάν αναζήτηση και αναφορά κωδικού κατάστασης HTTP για να βρείτε γρήγορα τη σημασία οποιουδήποτε κωδικού κατάστασης και να συνδέσετε την πλήρη τεκμηρίωση.