HTTP Status Codes Cheat Sheet

A Programming › HTTP cheat sheet in English by kstep

HTTP Status Codes

338,804 views 62,643 downloads 24 Jan 2012 History
4.9 avg · 53 ratings

1xx: HTTP Inform­ational Codes

100
Continue
101
Switching Protocols
102
Processing WebDAV
103
Checkpoint draft POST PUT
122
Reques­t-URI too long IE7

2xx: HTTP Successful Codes

200
OK
201
Created
202
Accepted
203
Non-Au­tho­rit­ative Inform­ation 1.1
204
No Content
205
Reset Content
206
Partial Content
207
Multi-­Status WebDAV 4918
208
Already Reported WebDAV 5842
226
IM Used 3229 GET

3xx: HTTP Redire­ction Codes

300
Multiple Choices
301
Moved Perman­ently
302
Found
303
See Other 1.1
304
Not Modified
305
Use Proxy 1.1
306
Switch Proxy unused
307
Temporary Redirect 1.1
308
Permanent Redirect 7538
307 and 308 are similar to 302 and 301, but the new request method after redirect must be the same, as on initial request.

4xx: HTTP Client Error Code

400
Bad Request
401
Unauth­orized
402
Payment Required res
403
Forbidden
404
Not Found
405
Method Not Allowed
406
Not Acceptable
407
Proxy Authen­tic­ation Required
408
Request Timeout
409
Conflict
410
Gone
411
Length Required
412
Precon­dition Failed
413
Request Entity Too Large
414
Reques­t-URI Too Long
415
Unsupp­orted Media Type
416
Requested Range Not Satisf­iable
417
Expect­ation Failed
418
I'm a teapot 2324
422
Unproc­essable Entity WebDAV 4918
423
Locked WebDAV 4918
424
Failed Dependency WebDAV 4918
425
Unordered Collection 3648
426
Upgrade Required 2817
428
Precon­dition Required draft
429
Too Many Requests draft
431
Request Header Fields Too Large draft
444
No Response nginx
449
Retry With MS
450
Blocked By Windows Parental Controls MS
451
Unavai­lable For Legal Reasons draft
499
Client Closed Request nginx

5xx: HTTP Server Error Codes

500
Internal Server Error
501
Not Implem­ented
502
Bad Gateway
503
Service Unavai­lable
504
Gateway Timeout
505
HTTP Version Not Supported
506
Variant Also Negotiates 2295
507
Insuff­icient Storage WebDAV 4918
508
Loop Detected WebDAV 5842
509
Bandwidth Limit Exceeded nostd
510
Not Extended 2774
511
Network Authen­tic­ation Required draft
598
Network read timeout error nostd
599
Network connect timeout error nostd

HTTP Code Comments

WebDAV
WebDAV extension
1.1
HTTP/1.1
GET, POST, PUT, POST
For these methods only
IE
IE extension
MS
MS extension
nginx
nginx extension
2518, 2817, 2295, 2774, 3229, 4918, 5842
RFC number
draft
Proposed draft
nostd
Non standard extension
res
Reserved for future use
unused
No more in use, deprecated
Wikipedia was used to produce all HTTP codes content:
http:/­/en.wi­kip­edi­a.o­rg/­wik­i/H­TTP­_status

Badges

Great Cheat Sheet Useful Cheat Sheet Liked Cheat Sheet Good Cheat Sheet Nice Cheat Sheet Appreciated Cheat Sheet Downloaded from Unusual Locations × 23

Comments (10)

managedkaos 18:50 4 Jun 2015

Nice sheet! My only suggestion would be to put the code category (1xx, for example) on the left of the header vs the right. Scanning for categories is faster that way instead of having to read the entire header. Not really a big deal in all, but just a suggestion! Thanks for this great sheet.

Reply
kstep 16:39 1 Jul 2016

Good advice, thank you! I've taken it into account.

Reply
Gokhan E. 14:28 14 Apr 2015

HTTP 308 Permanent Redirect => https://tools.ietf.org/html/draft-reschke-http-status-308-00

Reply
kstep 16:38 1 Jul 2016

Thank you for noticing this mistake, I fixed it.

Reply
Adam 09:44 10 Feb 2015

Why two pages? It would easily fit onto 1 page

Reply
DaveChild 10:06 10 Feb 2015

Hi Adam. Well spotted. Yes, this should fit on to one page. I've had a look at the PDF generation system and corrected a bug with it, and this will now be a bit more accurate.

Reply
kstep 16:48 18 Mar 2013

Update: code 451 (unavailable for legal reasons), see http://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00.

Reply
Martijn Oud 12:39 26 Jan 2012

I should hang this on my fridge haha :). Thanks!

Reply
DaveChild 17:07 24 Jan 2012

Great cheat sheet, kstep! Very handy!

Reply
kstep 11:18 11 Jan 2012

Note to self: review content in accordance with http://en.wikipedia.org/wiki/List_of_HTTP_status_codes and RFCs.

Reply

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.