source: Dev/trunk/node_modules/should/lib/http.js @ 531

Last change on this file since 531 was 484, checked in by hendrikvanantwerpen, 11 years ago

Commit node_modules, to make checkouts and builds more deterministic.

File size: 2.1 KB
Line 
1//copy of node http module status codes
2//https://github.com/joyent/node/blob/master/lib/_http_server.js
3
4var STATUS_CODES = exports.STATUS_CODES = {
5  100 : 'Continue',
6  101 : 'Switching Protocols',
7  102 : 'Processing',                 // RFC 2518, obsoleted by RFC 4918
8  200 : 'OK',
9  201 : 'Created',
10  202 : 'Accepted',
11  203 : 'Non-Authoritative Information',
12  204 : 'No Content',
13  205 : 'Reset Content',
14  206 : 'Partial Content',
15  207 : 'Multi-Status',               // RFC 4918
16  300 : 'Multiple Choices',
17  301 : 'Moved Permanently',
18  302 : 'Moved Temporarily',
19  303 : 'See Other',
20  304 : 'Not Modified',
21  305 : 'Use Proxy',
22  307 : 'Temporary Redirect',
23  400 : 'Bad Request',
24  401 : 'Unauthorized',
25  402 : 'Payment Required',
26  403 : 'Forbidden',
27  404 : 'Not Found',
28  405 : 'Method Not Allowed',
29  406 : 'Not Acceptable',
30  407 : 'Proxy Authentication Required',
31  408 : 'Request Time-out',
32  409 : 'Conflict',
33  410 : 'Gone',
34  411 : 'Length Required',
35  412 : 'Precondition Failed',
36  413 : 'Request Entity Too Large',
37  414 : 'Request-URI Too Large',
38  415 : 'Unsupported Media Type',
39  416 : 'Requested Range Not Satisfiable',
40  417 : 'Expectation Failed',
41  418 : 'I\'m a teapot',              // RFC 2324
42  422 : 'Unprocessable Entity',       // RFC 4918
43  423 : 'Locked',                     // RFC 4918
44  424 : 'Failed Dependency',          // RFC 4918
45  425 : 'Unordered Collection',       // RFC 4918
46  426 : 'Upgrade Required',           // RFC 2817
47  428 : 'Precondition Required',      // RFC 6585
48  429 : 'Too Many Requests',          // RFC 6585
49  431 : 'Request Header Fields Too Large',// RFC 6585
50  500 : 'Internal Server Error',
51  501 : 'Not Implemented',
52  502 : 'Bad Gateway',
53  503 : 'Service Unavailable',
54  504 : 'Gateway Time-out',
55  505 : 'HTTP Version Not Supported',
56  506 : 'Variant Also Negotiates',    // RFC 2295
57  507 : 'Insufficient Storage',       // RFC 4918
58  509 : 'Bandwidth Limit Exceeded',
59  510 : 'Not Extended',               // RFC 2774
60  511 : 'Network Authentication Required' // RFC 6585
61};
62
63module.exports.STATUS_CODES = STATUS_CODES;
Note: See TracBrowser for help on using the repository browser.