0% found this document useful (0 votes)
41 views

HTTP Status Codes Golang

This document provides a cheat sheet summarizing HTTP status codes. It lists the 1xx informational codes like 100 Continue, the 2xx success codes like 200 OK, the 3xx redirection codes like 301 Moved Permanently, the 4xx client error codes like 400 Bad Request, and the 5xx server error codes like 500 Internal Server Error. For each code, it gives a brief description and the associated status constant in Golang.

Uploaded by

mohangbox
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

HTTP Status Codes Golang

This document provides a cheat sheet summarizing HTTP status codes. It lists the 1xx informational codes like 100 Continue, the 2xx success codes like 200 OK, the 3xx redirection codes like 301 Moved Permanently, the 4xx client error codes like 400 Bad Request, and the 5xx server error codes like 500 Internal Server Error. For each code, it gives a brief description and the associated status constant in Golang.

Uploaded by

mohangbox
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

HTTP Status Codes (Golang) Cheat Sheet

by jp153 via cheatography.com/72560/cs/18360/

1xx Inform​ational Response 4xx Client errors 4xx Client errors (cont)

100 Continue Status​Con​tinue 400 Bad Request Status​Bad​Request 426 Upgrade Status​Upg​rad​eRe​qui

101 Switching Status​Swi​tch​ing​Pro​toc 401 Unauth​orized Status​Una​uth​orized Required red

Protocols ols 428 Precon​dition Status​Pre​con​dit​ion​R


402 Payment Status​Pay​men​tRe​quir
102 Processing Status​Pro​cessing Required ed Required eq​uired

429 Too Many Status​Too​Man​yRe​qu


103 Early Hints 403 Forbidden Status​For​bidden
Requests ests
404 Not Found Status​Not​Found
2xx Success 431 Request Header Status​Req​ues​tHe​ade​
405 Method Not Status​Met​hod​Not​Allow
Fields Too Large rFi​eld​sTo​oLarge
200 OK StatusOK Allowed ed
451 Unavai​lable For Status​Una​vai​lab​leF​o
201 Created Status​Created 406 Not Acceptable Status​Not​Acc​eptable
Legal Reasons rL​ega​lRe​asons
202 Accepted Status​Acc​epted 407 Proxy Status​Pro​xyA​uth​Req​ui
Authen​tic​ation red 5xx Server Error
204 No Content Status​NoC​ontent
Required
203 Non-Au​tho​rit​ative Status​Non​Aut​hor​ita​ 500 Internal Server Status​Int​ern​alS​erv​erE
408 Request Status​Req​ues​tTi​meout
Inform​ation tiv​eInfo Error rror
Timeout
205 Reset Content Status​Res​etC​onten 501 Not Status​Not​Imp​lem​ente
409 Conflict Status​Con​flict
t Implem​ented d
410 Gone StatusGone
206 Partial Content Status​Par​tia​lCo​nte 502 Bad Gateway Status​Bad​Gateway
nt 411 Length Status​Len​gth​Req​uired
503 Service Status​Ser​vic​eUn​ava​il
Required
207 Multi-​Status Status​Mul​tiS​tatus Unavai​lable able
412 Precon​dition Status​Pre​con​dit​ion​Fail
208 Already Reported Status​Alr​ead​yRe​po 504 Gateway Status​Gat​ewa​yTi​meo
Failed ed
rted Timeout ut
413 Payload Too Status​Req​ues​tEn​tit​yTo​
226 IM Used Status​IMUsed 505 HTTP Version Status​HTT​PVe​rsi​onN​
Large oLarge
Not Supported otS​upp​orted
3xx Redire​ction 414 URI Too Long Status​Req​ues​tUR​ITo​o
506 Variant Also Status​Var​ian​tAl​soN​eg
Long
Negotiates o​tiates
300 Multiple Choices Status​Mul​tip​leC​hoices
415 Unsupp​orted Status​Uns​upp​ort​edM​e
507 Insuff​icient Status​Ins​uff​ici​ent​Stor
301 Moved Status​Mov​edP​erm​ane Media Type di​aType
Storage age
Perman​ently ntly
416 Range Not Status​Req​ues​ted​Ran​g
508 Loop Detected Status​Loo​pDe​tected
302 Found Status​Found Satisf​iable eN​otS​ati​sfiable
303 See Other Status​See​Other 510 Not Extended Status​Not​Ext​ended
417 Expect​ation Status​Exp​ect​ati​onF​aile
Failed d 511 Network Status​Net​wor​kAu​the​n
304 Not Modified Status​Not​Mod​ified
Authen​tic​ation ti​cat​ion​Req​uired
305 Use Proxy Status​Use​Proxy 418 I'm a teapot Status​Teapot
Required
306 Switch Proxy _ 421 Misdir​ected Status​Mis​dir​ect​edR​eq
Request uest
307 Temporary Status​Tem​por​ary​Red​i
Redirect rect 422 Unproc​essable Status​Unp​roc​ess​abl​eE
Entity ntity
308 Permanent Status​Per​man​ent​Red​ir
Redirect ect 423 Locked Status​Locked

424 Failed Status​Fai​led​Dep​enden


Dependency cy

By jp153 Not published yet. Sponsored by ApolloPad.com


cheatography.com/jp153/ Last updated 27th December, 2018. Everyone has a novel in them. Finish Yours!
Page 1 of 1. https://apollopad.com

You might also like