Show Menu
Cheatography

HTTP Status Codes (Golang) Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

1xx Inform­ational Response

100
Continue
Status­Con­tinue
101
Switching Protocols
Status­Swi­tch­ing­Pro­tocols
102
Processing
Status­Pro­cessing
103
Early Hints

2xx Success

200
OK
StatusOK
201
Created
Status­Created
202
Accepted
Status­Acc­epted
204
No Content
Status­NoC­ontent
203
Non-Au­tho­rit­ative Inform­ation
Status­Non­Aut­hor­ita­tiv­eInfo
205
Reset Content
Status­Res­etC­ontent
206
Partial Content
Status­Par­tia­lCo­ntent
207
Multi-­Status
Status­Mul­tiS­tatus
208
Already Reported
Status­Alr­ead­yRe­ported
226
IM Used
Status­IMUsed

3xx Redire­ction

300
Multiple Choices
Status­Mul­tip­leC­hoices
301
Moved Perman­ently
Status­Mov­edP­erm­anently
302
Found
Status­Found
303
See Other
Status­See­Other
304
Not Modified
Status­Not­Mod­ified
305
Use Proxy
Status­Use­Proxy
306
Switch Proxy
_
307
Temporary Redirect
Status­Tem­por­ary­Red­irect
308
Permanent Redirect
Status­Per­man­ent­Red­irect
 

4xx Client errors

400
Bad Request
Status­Bad­Request
401
Unauth­orized
Status­Una­uth­orized
402
Payment Required
Status­Pay­men­tRe­quired
403
Forbidden
Status­For­bidden
404
Not Found
Status­Not­Found
405
Method Not Allowed
Status­Met­hod­Not­Allowed
406
Not Acceptable
Status­Not­Acc­eptable
407
Proxy Authen­tic­ation Required
Status­Pro­xyA­uth­Req­uired
408
Request Timeout
Status­Req­ues­tTi­meout
409
Conflict
Status­Con­flict
410
Gone
StatusGone
411
Length Required
Status­Len­gth­Req­uired
412
Precon­dition Failed
Status­Pre­con­dit­ion­Failed
413
Payload Too Large
Status­Req­ues­tEn­tit­yTo­oLarge
414
URI Too Long
Status­Req­ues­tUR­ITo­oLong
415
Unsupp­orted Media Type
Status­Uns­upp­ort­edM­edi­aType
416
Range Not Satisf­iable
Status­Req­ues­ted­Ran­geN­otS­ati­sfiable
417
Expect­ation Failed
Status­Exp­ect­ati­onF­ailed
418
I'm a teapot
Status­Teapot
421
Misdir­ected Request
Status­Mis­dir­ect­edR­equest
422
Unproc­essable Entity
Status­Unp­roc­ess­abl­eEntity
423
Locked
Status­Locked
424
Failed Dependency
Status­Fai­led­Dep­endency
426
Upgrade Required
Status­Upg­rad­eRe­quired
428
Precon­dition Required
Status­Pre­con­dit­ion­Req­uired
429
Too Many Requests
Status­Too­Man­yRe­quests
431
Request Header Fields Too Large
Status­Req­ues­tHe­ade­rFi­eld­sTo­oLarge
451
Unavai­lable For Legal Reasons
Status­Una­vai­lab­leF­orL­ega­lRe­asons
 

5xx Server Error

500
Internal Server Error
Status­Int­ern­alS­erv­erError
501
Not Implem­ented
Status­Not­Imp­lem­ented
502
Bad Gateway
Status­Bad­Gateway
503
Service Unavai­lable
Status­Ser­vic­eUn­ava­ilable
504
Gateway Timeout
Status­Gat­ewa­yTi­meout
505
HTTP Version Not Supported
Status­HTT­PVe­rsi­onN­otS­upp­orted
506
Variant Also Negotiates
Status­Var­ian­tAl­soN­ego­tiates
507
Insuff­icient Storage
Status­Ins­uff­ici­ent­Storage
508
Loop Detected
Status­Loo­pDe­tected
510
Not Extended
Status­Not­Ext­ended
511
Network Authen­tic­ation Required
Status­Net­wor­kAu­the­nti­cat­ion­Req­uired
   

Support Cheatography!