When browsing the web or building websites, you may encounter numbers like 404, 500, or 301. These numbers are HTTP status codes — short messages from a web server that tell your browser whether a request succeeded, failed, or needs more action.

This guide covers all major HTTP status codes, including informational, success, redirection, client errors, and server errors.


1. What Are HTTP Status Codes?

HTTP status codes are standardized responses from a web server when a browser or client requests a resource.
Each status code is three digits, and the first digit defines the response category:

  • 1xx – Informational responses
  • 2xx – Success responses
  • 3xx – Redirection messages
  • 4xx – Client error messages
  • 5xx – Server error messages

2. Complete HTTP Status Code Table

CodeCategoryMeaningExample Use Case
100InformationalContinueRequest received, client should continue
101InformationalSwitching ProtocolsServer is switching protocols
102InformationalProcessingWebDAV request still in process
103InformationalEarly HintsPreloading resources before final response
200SuccessOKRequest succeeded (normal webpage load)
201SuccessCreatedResource successfully created
202SuccessAcceptedRequest accepted but processing later
203SuccessNon-Authoritative InformationMetadata from another source
204SuccessNo ContentRequest succeeded, no content returned
205SuccessReset ContentClient should reset form input
206SuccessPartial ContentPartial resource returned (range request)
300RedirectionMultiple ChoicesMultiple options for resource
301RedirectionMoved PermanentlyResource moved to a new URL
302RedirectionFoundTemporary redirect
303RedirectionSee OtherRedirect to a different resource
304RedirectionNot ModifiedCached version is still valid
307RedirectionTemporary RedirectSame method redirect
308RedirectionPermanent RedirectMethod preserved permanent redirect
400Client ErrorBad RequestInvalid syntax in request
401Client ErrorUnauthorizedAuthentication required
402Client ErrorPayment RequiredReserved for future use
403Client ErrorForbiddenAccess denied
404Client ErrorNot FoundResource not found
405Client ErrorMethod Not AllowedHTTP method not supported
406Client ErrorNot AcceptableResource not available in acceptable format
407Client ErrorProxy Authentication RequiredMust authenticate with proxy
408Client ErrorRequest TimeoutServer timed out waiting for request
409Client ErrorConflictRequest conflicts with server state
410Client ErrorGoneResource permanently removed
411Client ErrorLength RequiredContent-Length header missing
412Client ErrorPrecondition FailedServer precondition failed
413Client ErrorPayload Too LargeRequest body too large
414Client ErrorURI Too LongRequest URL too long
415Client ErrorUnsupported Media TypeFormat not supported
416Client ErrorRange Not SatisfiableInvalid range request
417Client ErrorExpectation FailedExpect header not met
418Client ErrorI’m a TeapotJoke status from RFC 2324
422Client ErrorUnprocessable EntityWebDAV request validation failed
425Client ErrorToo EarlyRequest too early to process
426Client ErrorUpgrade RequiredSwitch to a different protocol
428Client ErrorPrecondition RequiredMissing required conditions
429Client ErrorToo Many RequestsRate-limiting triggered
431Client ErrorRequest Header Fields Too LargeHeaders too large
451Client ErrorUnavailable For Legal ReasonsBlocked due to legal demand
500Server ErrorInternal Server ErrorGeneric server failure
501Server ErrorNot ImplementedFunctionality not supported
502Server ErrorBad GatewayInvalid response from upstream server
503Server ErrorService UnavailableServer temporarily overloaded
504Server ErrorGateway TimeoutUpstream server timeout
505Server ErrorHTTP Version Not SupportedUnsupported HTTP version
506Server ErrorVariant Also NegotiatesInternal negotiation error
507Server ErrorInsufficient StorageWebDAV storage full
508Server ErrorLoop DetectedInfinite loop detected
510Server ErrorNot ExtendedMissing policy extensions
511Server ErrorNetwork Authentication RequiredAuthenticate to access network

3. Common HTTP Error Codes & Fixes

404 Not Found

  • Cause: The requested page doesn’t exist.
  • Fix: Check URL spelling or update broken links.

500 Internal Server Error

  • Cause: Generic server issue.
  • Fix: Check server logs for PHP or database errors.

503 Service Unavailable

  • Cause: Server is overloaded or down for maintenance.
  • Fix: Reduce traffic load or wait for maintenance to finish.

4. Summary

HTTP status codes are essential for understanding web server responses. Knowing them helps developers debug issues faster and optimize website performance.