HTTP-statuskodguide

Komplett referensguide för HTTP-statuskoder (1xx–5xx) med förklaringar och vanliga användningsfall.

100
Continue
The server received the initial part of the request; the client should continue sending the rest
Informational
101
Switching Protocols
The server understands and agrees to the client's protocol switch request
Informational
102
Processing
The server received the request and is still processing it
Informational
200
OK
The request succeeded
Success
201
Created
The request succeeded and a new resource was created
Success
202
Accepted
The request was accepted but has not finished processing
Success
204
No Content
The request succeeded but there is no content to return
Success
206
Partial Content
The server successfully processed a partial GET request
Success
300
Multiple Choices
The request has more than one possible response
Redirection
301
Moved Permanently
The requested resource has moved permanently to a new location
Redirection
302
Found
The requested resource is temporarily served from a different URI
Redirection
304
Not Modified
Not modified; use the cached version
Redirection
307
Temporary Redirect
Temporary redirect, keeping the request method
Redirection
308
Permanent Redirect
Permanent redirect, keeping the request method
Redirection
400
Bad Request
The server cannot understand the request format
Client error
401
Unauthorized
The request requires authentication
Client error
403
Forbidden
The server refuses the request
Client error
404
Not Found
The requested resource does not exist
Client error
405
Method Not Allowed
The request method is not allowed
Client error
408
Request Timeout
The server timed out waiting for the request
Client error
409
Conflict
The request conflicts with the server's current state
Client error
410
Gone
The requested resource has been permanently deleted
Client error
413
Payload Too Large
The request entity is too large
Client error
414
URI Too Long
The request URI is too long
Client error
415
Unsupported Media Type
Unsupported media type
Client error
422
Unprocessable Entity
The request is well-formed but semantically incorrect
Client error
429
Too Many Requests
Too many requests
Client error
500
Internal Server Error
Internal server error
Server error
501
Not Implemented
The server does not support the requested functionality
Server error
502
Bad Gateway
Bad gateway
Server error
503
Service Unavailable
Service temporarily unavailable
Server error
504
Gateway Timeout
Gateway timeout
Server error

Om HTTP-statuskodguide — Detaljerad guide

Kategori: Nätverk och HTTP 100 % lokalt i webbläsaren

HTTP-statuskodsguiden tillhandahåller en uttömmande uppslagsbok över standardiserade IETF RFC HTTP-svarsstatuskoder kategoriserade under 1xx (Information), 2xx (Framgång), 3xx (Omdirigering), 4xx (Klientfel) och 5xx (Serverfel).

Varje post innehåller dess officiella RFC-namn, ingående arkitekturförklaringar, vanliga orsaker och felsökningsrekommendationer. Tack vare en helt klientsidig databas visas sökresultaten direkt offline utan någon nätverkslatens.

#http #status #code #404 #500 #200

Huvudfunktioner och möjligheter

  • Omfattande katalog över vanliga svarskoder för 1xx till 5xx i HTTP/1.1 och HTTP/2
  • Ingående arkitekturdokumentation som beskriver RFC-ursprung, grundorsaker och felsökningssteg
  • Snabb luddig sökning (fuzzy search) med numerisk kod (t.ex. 404, 503) eller naturliga nyckelord
  • 100 % offline statisk referensguide tillgänglig utan serverberoenden

Så här använder du verktyget

  1. 1

    Ange ett statuskodsnummer (t.ex. 504) eller nyckelord (t.ex. gateway, unauthorized) i sökrutan.

  2. 2

    Klicka på ett matchande statuskort för att fälla ut dess arkitektoniska genomgång.

  3. 3

    Granska rekommenderad diagnostik och åtgärdsmetoder för din applikation.

Vanliga användningsområden

  • → Felsökning av 502 Bad Gateway- och 504 Timeout-fel i Nginx, Cloudflare eller omvända proxyservrar
  • → Att skilja mellan 401 Unauthorized och 403 Forbidden vid utformning av API-autentisering
  • → Val av semantiskt precisa svarskoder för REST API:er (t.ex. 201 Created kontra 204 No Content)

Relaterade verktyg

Vanliga frågor och integritet

Vad är den praktiska skillnaden mellan 301- och 302-omdirigeringar?

En 301 Moved Permanently instruerar webbläsare och sökmotorer att cachelagra den nya måladressen permanent, medan en 302 Found anger en tillfällig omdirigering som behåller den ursprungliga URL:en i sökindexen.

När bör ett API returnera 422 Unprocessable Entity istället för 400 Bad Request?

HTTP 400 indikerar felaktig syntax (t.ex. ogiltig JSON), medan 422 anger syntaktiskt giltiga begäranden som bryter mot semantiska affärsregler (t.ex. att ålder inte kan vara negativ).