HTTP Status Codes

1. Informational (100–199)

The server has received the request and is continuing the process.

CodeNameWhen It’s UsedMemory Hook
100ContinueClient should continue sending request bodyKeep going
101Switching ProtocolsProtocol upgrade (e.g., HTTP → WebSocket)Switching lanes
102ProcessingRequest received, still processing (WebDAV)Working on it
103Early HintsPreload resources before final responseHeads up

2. Success (200–299)

The request was successfully received, understood, and accepted.

CodeNameTypical UseMemory Hook
200OKStandard successful responseAll good
201CreatedResource created (POST)Born
202AcceptedAccepted but not completedIn progress
204No ContentSuccess with no response bodyEmpty but fine
206Partial ContentRange requests (file streaming)Just a slice

Common API Usage

OperationRecommended Code
GET200
POST (create)201
PUT/PATCH200 or 204
DELETE204

3. Redirection (300–399)

The client must take additional action to complete the request.

CodeNameWhen to UseMemory Hook
301Moved PermanentlyPermanent redirectForever moved
302FoundTemporary redirectMoved for now
303See OtherRedirect after POSTLook elsewhere
304Not ModifiedCached version still validUse your copy
307Temporary RedirectTemporary, method preservedSame method, temp
308Permanent RedirectPermanent, method preservedSame method, forever

4. Client Errors (400–499)

The request contains bad syntax or cannot be fulfilled.

CodeNameTypical CauseMemory Hook
400Bad RequestMalformed syntax / invalid JSONYou messed up
401UnauthorizedMissing or invalid authenticationWho are you
403ForbiddenAuthenticated but no permissionNot allowed
404Not FoundResource does not existGone missing
405Method Not AllowedIncorrect HTTP methodWrong verb
406Not AcceptableCannot produce requested formatWrong format
408Request TimeoutClient took too longToo slow
409ConflictResource state conflictVersion clash
410GonePermanently removed resourceReally gone
413Payload Too LargeRequest body too largeToo heavy
415Unsupported Media TypeInvalid Content-TypeWrong type
422Unprocessable EntityValidation failedData invalid
429Too Many RequestsRate limiting triggeredSlow down

Authentication Quick Reference

ScenarioCode
No token401
Invalid token401
Valid token, no permission403

5. Server Errors (500–599)

The server failed to fulfill a valid request.

CodeNameMeaningMemory Hook
500Internal Server ErrorGeneric server failureSomething broke
501Not ImplementedFeature not supportedNot built
502Bad GatewayInvalid upstream responseBad middleman
503Service UnavailableServer overloaded or downCome back later
504Gateway TimeoutUpstream service timeoutUpstream too slow

Rare but Useful Codes

CodeMeaning
418I’m a teapot (RFC joke code)
425Too Early (retry unsafe request)
451Unavailable for Legal Reasons

Summary

Code PrefixMeaning
1xxWait
2xxSuccess
3xxRedirect
4xxClient error
5xxServer error

Last Updated on Feb 20, 2026