-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttpcodes.html
More file actions
638 lines (599 loc) · 21.5 KB
/
httpcodes.html
File metadata and controls
638 lines (599 loc) · 21.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HTTP Status Codes</title>
<meta name="description" content="A list of HTTP Status Codes" />
<meta name="author" content="J.Motyl - https://jamesmotyl.com" />
<!-- Body and Table -->
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
body {
margin: 0;
font-family: "Roboto", sans-serif;
/*
This is necessary for Firefox mobile. And
it's because FFM does not work "right".
This adjustment is so-so for the other mobile
browsers. IMHO normal text is now just a bit
too small.
NOTE: This adjustment does not change the
<th> column width failure in FFM.
*/
font-size: 95%;
}
html {
scroll-padding-top: 2.5rem;
scroll-behavior: smooth;
}
h1, h2 {
text-align: center;
}
@media (min-width: 500px) {
.page-title {
display: none;
}
}
table {
width: 95%;
border-collapse: collapse;
margin: auto auto 15rem auto;
border: solid 2px black;
}
@media (min-width: 768px) {
table {
width: 70%;
}
}
tr {
height: 1rem;
}
tr[type="boundary"], tr[type="boundary_first"] {
background-color: green;
height: .5rem;
padding-bottom: 2rem;
}
@media (max-width: 400px) {
tr[type="boundary_first"]:first-of-type {
display: none;
}
}
tr[type="boundary"] th {
height: .5rem;
padding: 0;
}
tr[type="heading"] {
height: 2rem;
}
tr[type="col-heading"] {
border-bottom: solid 1px black;
}
tr[type="hcode"] {
border-bottom: solid 1px blue;
}
tr[type="hcode"] td:nth-of-type(2) {
border-left: solid 1px blue;
border-right: solid 1px blue;
}
tr[type="hcode"]:nth-child(odd) {
background-color: lightgrey;
}
th {
/*
Set the width of the columns, EXCEPT for
firefox mobile which ignores this. It
seems to occur if the cell contents are
too large. FF mobile will let the content
spill out over the cell border. And that
is probably because FFM is rendering the
overall font size too large.
NOTE: Using a font sizing of 95% the contents
no longer spill out of the cell. But FFM
still ignores the setting.
*/
width: 33.3%;
}
td {
height: 2.5rem;
padding-top: .5rem;
padding-bottom: .5rem;
padding-left: .25rem;
padding-right: .25rem;
}
th[type="heading"]] {
text-align: center;
height: 2rem;
}
span {
font-weight: 900;
}
</style>
<!-- Navigation -->
<style>
.nav-header {
z-index: 1;
background-color: grey;
box-shadow: 0 5px grey;
position: sticky;
top: 0;
width: 100%;
display: inline-block;
margin: 0;
}
.nav-header div {
display: none;
font-weight: 900;
font-size: 100%;
color: white;
margin: 0 0 0 2em;
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
@media (min-width: 500px) {
.nav-header div {
display: inline-block;
}
}
@media (min-width: 768px) {
.nav-header div {
font-size: 150%;
}
}
.nav{
max-height: none;
top: 0;
position: relative;
float: right;
width: fit-content;
}
.menu {
list-style: none;
margin-top: 0;
}
.menu a{
text-decoration: none;
display: block;
color: white;
font-weight: 900;
padding: 10px 15px 10px 15px;
}
@media (min-width: 768px) {
.menu a{
padding: 10px 30px 10px 30px;
}
}
.menu a:hover {
background-color: rgba(0, 0, 0, 0);
color: black;
}
.menu li {
float: left;
}
</style>
</head>
<!--
This table of HTTP codes is for reference, the information it
contains has been gathered from several sources. What's been
imported here seemed to make sense (at the time) and provided
useful information.
A number of codes are not present but can be added in the future.
Sources:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
https://www.tutorialspoint.com/http/http_status_codes.htm
Author: https://github.com/jxmot
Repository: https://github.com/jxmot/http-status-codes-reference
-->
<body>
<!-- Navigation Bar -->
<div id="nav_header" class="nav-header">
<!-- Menu -->
<div>HTTP Status Codes</div>
<nav id="nav_menu" class="nav">
<ul class="menu">
<li><a href="#1xx">1xx</a></li>
<li><a href="#2xx">2xx</a></li>
<li><a href="#3xx">3xx</a></li>
<li><a href="#4xx">4xx</a></li>
<li><a href="#5xx">5xx</a></li>
</ul>
</nav>
</div>
<!-- Top of page target -->
<div id="1xx"></div>
<h2 class="page-title">HTTP Status Codes</h2>
<div id="http_status_codes_list">
<table>
<tbody>
<tr type="boundary_first"><th> </th><th> </th><th> </th></tr>
<tr type="heading">
<th> </th>
<th type="heading"><span>1xx Informational</span></th>
<!-- <th> </th> -->
</tr>
<tr type="col-heading">
<th type="heading"><span>Status code</span></th>
<th type="heading"><span>Status text</span></th>
<th type="heading"><span>Description</span></th>
</tr>
<tr type="hcode">
<td>100</td>
<td>Continue</td>
<td>Only a part of the request has been received by the server, but as long as it has not been rejected, the client should continue with the request.</td>
</tr>
<tr type="hcode">
<td>101</td>
<td>Switching protocols</td>
<td>This code is sent in response to an Upgrade request header from the client and indicates the protocol the server is switching to.</td>
</tr>
<tr type="hcode">
<td>102</td>
<td>Processing</td>
<td>This code indicates that the server has received and is processing the request, but no response is available yet.</td>
</tr>
<tr type="hcode">
<td>103</td>
<td>Early Hints</td>
<td>This status code is primarily intended to be used with the Link header, letting the user agent start preloading resources while the server prepares a response.</td>
</tr>
</tbody>
<tbody>
<tr id="2xx" type="boundary"><th> </th><th> </th><th> </th></tr>
<tr type="heading">
<th> </th>
<th type="heading"><span>2xx Succesful</span></th>
<!-- <th> </th> -->
</tr>
<tr type="col-heading">
<th type="heading"><span>Status code</span></th>
<th type="heading"><span>Status text</span></th>
<th type="heading"><span>Description</span></th>
</tr>
<tr type="hcode">
<td>200</td>
<td>OK</td>
<td>The request succeeded.</td>
</tr>
<tr type="hcode">
<td>201</td>
<td>Created</td>
<td>The request is complete, and a new resource is created</td>
</tr>
<tr type="hcode">
<td>202</td>
<td>Accepted</td>
<td>The request is accepted for processing, but the processing is not complete.</td>
</tr>
<tr type="hcode">
<td>203</td>
<td>Non-Authoritative Information</td>
<td>The information in the entity header is from a local or third-party copy, not from the original server.</td>
</tr>
<tr type="hcode">
<td>204</td>
<td>No Content</td>
<td>A status code and a header are given in the response, but there is no entity-body in the reply.</td>
</tr>
<tr type="hcode">
<td>205</td>
<td>Reset Content</td>
<td>Tells the user agent to reset the document which sent this request.</td>
</tr>
<tr type="hcode">
<td>206</td>
<td>Partial Content</td>
<td>The server is returning partial data of the size requested. Used in response to a request specifying a Range header. The server must specify the range included in the response with the Content-Range header.</td>
</tr>
</tbody>
<tbody>
<tr id="3xx" type="boundary"><th> </th><th> </th><th> </th></tr>
<tr type="heading">
<th> </th>
<th type="heading"><span>3xx Redirection</span></th>
<!-- <th> </th> -->
</tr>
<tr type="col-heading">
<th type="heading"><span>Status code</span></th>
<th type="heading"><span>Status text</span></th>
<th type="heading"><span>Description</span></th>
</tr>
<tr type="hcode">
<td>300</td>
<td>Multiple Choices</td>
<td>A link list. The user can select a link and go to that location. Maximum five addresses </td>
</tr>
<tr type="hcode">
<td>301</td>
<td>Moved Permanently</td>
<td>The requested page has moved to a new url.</td>
</tr>
<tr type="hcode">
<td>302</td>
<td>Found</td>
<td>The requested page has moved temporarily to a new url</td>
</tr>
<tr type="hcode">
<td>303</td>
<td>See Other</td>
<td>The server sent this response to direct the client to get the requested resource at another URI with a GET request.</td>
</tr>
<tr type="hcode">
<td>304</td>
<td>Not Modified</td>
<td>This is used for caching purposes. It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response. </td>
</tr>
<tr type="hcode">
<td>307</td>
<td>Temporary Redirect</td>
<td>The server sends this response to direct the client to get the requested resource at another URI with same method that was used in the prior request.</td>
</tr>
<tr type="hcode">
<td>308</td>
<td>Permanent Redirect</td>
<td>This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header.</td>
</tr>
</tbody>
<tbody>
<tr id="4xx" type="boundary"><th> </th><th> </th><th> </th></tr>
<tr type="heading">
<th> </th>
<th type="heading"><span>4xx Client Error</span></th>
<!-- <th> </th> -->
</tr>
<tr type="col-heading">
<th type="heading"><span>Status code</span></th>
<th type="heading"><span>Status text</span></th>
<th type="heading"><span>Description</span></th>
</tr>
<tr type="hcode">
<td>400</td>
<td>Bad Request</td>
<td>The server cannot or will not process the request due to something that is perceived to be a client error</td>
</tr>
<tr type="hcode">
<td>401</td>
<td>Unauthorized</td>
<td>The HTTP standard specifies "unauthorized", semantically this response means "unauthenticated"</td>
</tr>
<tr type="hcode">
<td>403</td>
<td>Forbidden</td>
<td>The client does not have access rights to the content</td>
</tr>
<tr type="hcode">
<td>404</td>
<td>Not Found</td>
<td>The server can not find the requested resource.</td>
</tr>
<tr type="hcode">
<td>405</td>
<td>Method Not Allowed</td>
<td>The request method is known by the server but is not supported by the target resource.</td>
</tr>
<tr type="hcode">
<td>429</td>
<td>Too Many Requests</td>
<td>The user has sent too many requests in a given amount of time ("rate limiting").</td>
</tr>
<tr type="hcode">
<td>451</td>
<td>Unavailable For Legal Reasons</td>
<td>The user agent requested a resource that cannot legally be provided, such as a web page censored by a government.</td>
</tr>
</tbody>
<tbody>
<tr id="5xx" type="boundary"><th> </th><th> </th><th> </th></tr>
<tr type="heading">
<th> </th>
<th type="heading"><span>5xx Server Error</span></th>
<!-- <th> </th> -->
</tr>
<tr type="col-heading">
<th type="heading"><span>Status code</span></th>
<th type="heading"><span>Status text</span></th>
<th type="heading"><span>Description</span></th>
</tr>
<tr type="hcode">
<td>500</td>
<td>Internal Server Error</td>
<td>The server has encountered a situation it does not know how to handle.</td>
</tr>
<tr type="hcode">
<td>501</td>
<td>Not Implemented</td>
<td>The request method is not supported by the server and cannot be handled. </td>
</tr>
<tr type="hcode">
<td>502</td>
<td>Bad Gateway</td>
<td>This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.</td>
</tr>
<tr type="hcode">
<td>503</td>
<td>Service Unavailable</td>
<td>The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. </td>
</tr>
<tr type="hcode">
<td>504</td>
<td>Gateway Timeout</td>
<td>This error response is given when the server is acting as a gateway and cannot get a response in time.</td>
</tr>
<tr type="hcode">
<td>505</td>
<td>HTTP Version Not Supported</td>
<td>The HTTP version used in the request is not supported by the server.</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
<!-- Extra HTTP codes, use as needed...
200-299
<tr type="hcode">
<td>207</td>
<td>Multi-Status</td>
<td>WebDAV</td>
</tr>
<tr type="hcode">
<td>208</td>
<td>Already Reported</td>
<td>WebDAV</td>
</tr>
<tr type="hcode">
<td>226</td>
<td>IM Used</td>
<td> </td>
</tr>
300-399
<tr type="hcode">
<td>305</td>
<td>Use Proxy</td>
<td> </td>
</tr>
<tr type="hcode">
<td>306</td>
<td>Switch Proxy</td>
<td> </td>
</tr>
400-499
<tr type="hcode">
<td>402</td>
<td>Payment Required</td>
<td> </td>
</tr>
<tr type="hcode">
<td>406</td>
<td>Not Acceptable</td>
<td> </td>
</tr>
<tr type="hcode">
<td>407</td>
<td>Proxy Authentication Required</td>
<td> </td>
</tr>
<tr type="hcode">
<td>408</td>
<td>Request Timeout</td>
<td> </td>
</tr>
<tr type="hcode">
<td>409</td>
<td>Conflict</td>
<td> </td>
</tr>
<tr type="hcode">
<td>410</td>
<td>Gone</td>
<td> </td>
</tr>
<tr type="hcode">
<td>411</td>
<td>Length Required</td>
<td>Server rejected the request because the `Content-Length` header field is not defined and the server requires it.</td>
</tr>
<tr type="hcode">
<td>412</td>
<td>Precondition Failed</td>
<td> </td>
</tr>
<tr type="hcode">
<td>413</td>
<td>Payload Too Large</td>
<td> </td>
</tr>
<tr type="hcode">
<td>414</td>
<td>URI Too Long</td>
<td> </td>
</tr>
<tr type="hcode">
<td>415</td>
<td>Unsupported Media Type</td>
<td> </td>
</tr>
<tr type="hcode">
<td>416</td>
<td>Range Not Satisfiable</td>
<td> </td>
</tr>
<tr type="hcode">
<td>417</td>
<td>Expectation Failed</td>
<td> </td>
</tr>
<tr type="hcode">
<td>418</td>
<td>I'm a Teapot</td>
<td> </td>
</tr>
<tr type="hcode">
<td>421</td>
<td>Misdirected Request</td>
<td> </td>
</tr>
<tr type="hcode">
<td>422</td>
<td>Unprocessable Entity</td>
<td> </td>
</tr>
<tr type="hcode">
<td>423</td>
<td>Locked</td>
<td> </td>
</tr>
<tr type="hcode">
<td>424</td>
<td>Failed Dependency</td>
<td> </td>
</tr>
<tr type="hcode">
<td>425</td>
<td>Too Early</td>
<td> </td>
</tr>
<tr type="hcode">
<td>426</td>
<td>Upgrade Required</td>
<td> </td>
</tr>
<tr type="hcode">
<td>428</td>
<td>Precondition Required</td>
<td> </td>
</tr>
<tr type="hcode">
<td>431</td>
<td>Request Header Fields Too Large</td>
<td> </td>
</tr>
500-599
<tr type="hcode">
<td>506</td>
<td>Variant Also Negotiates</td>
<td> </td>
</tr>
<tr type="hcode">
<td>507</td>
<td>Insufficient Storage</td>
<td> </td>
</tr>
<tr type="hcode">
<td>508</td>
<td>Loop Detected</td>
<td> </td>
</tr>
<tr type="hcode">
<td>510</td>
<td>Not Extended</td>
<td> </td>
</tr>
<tr type="hcode">
<td>511</td>
<td>Network Authentication Required</td>
<td> </td>
</tr>
-->