sdfsdfs
This commit is contained in:
64
node_modules/builtin-status-codes/browser.js
generated
vendored
Normal file
64
node_modules/builtin-status-codes/browser.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
module.exports = {
|
||||
"100": "Continue",
|
||||
"101": "Switching Protocols",
|
||||
"102": "Processing",
|
||||
"200": "OK",
|
||||
"201": "Created",
|
||||
"202": "Accepted",
|
||||
"203": "Non-Authoritative Information",
|
||||
"204": "No Content",
|
||||
"205": "Reset Content",
|
||||
"206": "Partial Content",
|
||||
"207": "Multi-Status",
|
||||
"208": "Already Reported",
|
||||
"226": "IM Used",
|
||||
"300": "Multiple Choices",
|
||||
"301": "Moved Permanently",
|
||||
"302": "Found",
|
||||
"303": "See Other",
|
||||
"304": "Not Modified",
|
||||
"305": "Use Proxy",
|
||||
"307": "Temporary Redirect",
|
||||
"308": "Permanent Redirect",
|
||||
"400": "Bad Request",
|
||||
"401": "Unauthorized",
|
||||
"402": "Payment Required",
|
||||
"403": "Forbidden",
|
||||
"404": "Not Found",
|
||||
"405": "Method Not Allowed",
|
||||
"406": "Not Acceptable",
|
||||
"407": "Proxy Authentication Required",
|
||||
"408": "Request Timeout",
|
||||
"409": "Conflict",
|
||||
"410": "Gone",
|
||||
"411": "Length Required",
|
||||
"412": "Precondition Failed",
|
||||
"413": "Payload Too Large",
|
||||
"414": "URI Too Long",
|
||||
"415": "Unsupported Media Type",
|
||||
"416": "Range Not Satisfiable",
|
||||
"417": "Expectation Failed",
|
||||
"418": "I'm a teapot",
|
||||
"421": "Misdirected Request",
|
||||
"422": "Unprocessable Entity",
|
||||
"423": "Locked",
|
||||
"424": "Failed Dependency",
|
||||
"425": "Unordered Collection",
|
||||
"426": "Upgrade Required",
|
||||
"428": "Precondition Required",
|
||||
"429": "Too Many Requests",
|
||||
"431": "Request Header Fields Too Large",
|
||||
"451": "Unavailable For Legal Reasons",
|
||||
"500": "Internal Server Error",
|
||||
"501": "Not Implemented",
|
||||
"502": "Bad Gateway",
|
||||
"503": "Service Unavailable",
|
||||
"504": "Gateway Timeout",
|
||||
"505": "HTTP Version Not Supported",
|
||||
"506": "Variant Also Negotiates",
|
||||
"507": "Insufficient Storage",
|
||||
"508": "Loop Detected",
|
||||
"509": "Bandwidth Limit Exceeded",
|
||||
"510": "Not Extended",
|
||||
"511": "Network Authentication Required"
|
||||
}
|
8
node_modules/builtin-status-codes/build.js
generated
vendored
Normal file
8
node_modules/builtin-status-codes/build.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict'
|
||||
|
||||
var fs = require('fs')
|
||||
var statusCodes = require('./')
|
||||
|
||||
var code = 'module.exports = ' + JSON.stringify(statusCodes, null, 2) + '\n'
|
||||
|
||||
fs.writeFileSync('browser.js', code)
|
3
node_modules/builtin-status-codes/index.js
generated
vendored
Normal file
3
node_modules/builtin-status-codes/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = require('http').STATUS_CODES
|
21
node_modules/builtin-status-codes/license
generated
vendored
Normal file
21
node_modules/builtin-status-codes/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
39
node_modules/builtin-status-codes/package.json
generated
vendored
Normal file
39
node_modules/builtin-status-codes/package.json
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "builtin-status-codes",
|
||||
"main": "index.js",
|
||||
"browser": "browser.js",
|
||||
"version": "3.0.0",
|
||||
"description": "The map of HTTP status codes from the builtin http module",
|
||||
"license": "MIT",
|
||||
"repository": "bendrucker/builtin-status-codes",
|
||||
"author": {
|
||||
"name": "Ben Drucker",
|
||||
"email": "bvdrucker@gmail.com",
|
||||
"url": "bendrucker.me"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && tape test.js",
|
||||
"build": "node build.js"
|
||||
},
|
||||
"keywords": [
|
||||
"http",
|
||||
"status",
|
||||
"codes",
|
||||
"builtin",
|
||||
"map"
|
||||
],
|
||||
"devDependencies": {
|
||||
"tape": "^4.0.0",
|
||||
"standard": "^4.0.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"browser.js",
|
||||
"build.js"
|
||||
],
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"browser.js"
|
||||
]
|
||||
}
|
||||
}
|
31
node_modules/builtin-status-codes/readme.md
generated
vendored
Normal file
31
node_modules/builtin-status-codes/readme.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# builtin-status-codes [](https://travis-ci.org/bendrucker/builtin-status-codes)
|
||||
|
||||
> The map of HTTP status codes from the builtin http module. Exposes the latest directly from `http` in Node, with a zero-dependencies version for the browser.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save builtin-status-codes
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var codes = require('builtin-status-codes')
|
||||
codes[100]
|
||||
//=> Continue
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
To create a new browser build:
|
||||
|
||||
```sh
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Drucker](http://bendrucker.me)
|
Reference in New Issue
Block a user