pax_global_header00006660000000000000000000000064127350240440014513gustar00rootroot0000000000000052 comment=da83219db6bfdacc252e3d1559b22a04757fe59d builtin-status-codes-3.0.0/000077500000000000000000000000001273502404400155755ustar00rootroot00000000000000builtin-status-codes-3.0.0/.editorconfig000066400000000000000000000002741273502404400202550ustar00rootroot00000000000000root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true [*.md] trim_trailing_whitespace = false builtin-status-codes-3.0.0/.gitattributes000066400000000000000000000000141273502404400204630ustar00rootroot00000000000000* text=auto builtin-status-codes-3.0.0/.gitignore000066400000000000000000000000151273502404400175610ustar00rootroot00000000000000node_modules builtin-status-codes-3.0.0/.travis.yml000066400000000000000000000000421273502404400177020ustar00rootroot00000000000000language: node_js node_js: - iojs builtin-status-codes-3.0.0/browser.js000066400000000000000000000034011273502404400176140ustar00rootroot00000000000000module.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" } builtin-status-codes-3.0.0/build.js000066400000000000000000000002711273502404400172320ustar00rootroot00000000000000'use strict' var fs = require('fs') var statusCodes = require('./') var code = 'module.exports = ' + JSON.stringify(statusCodes, null, 2) + '\n' fs.writeFileSync('browser.js', code) builtin-status-codes-3.0.0/index.js000066400000000000000000000000741273502404400172430ustar00rootroot00000000000000'use strict' module.exports = require('http').STATUS_CODES builtin-status-codes-3.0.0/license000066400000000000000000000021271273502404400171440ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) Ben Drucker (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. builtin-status-codes-3.0.0/package.json000066400000000000000000000013501273502404400200620ustar00rootroot00000000000000{ "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" ] } } builtin-status-codes-3.0.0/readme.md000066400000000000000000000011421273502404400173520ustar00rootroot00000000000000# builtin-status-codes [![Build Status](https://travis-ci.org/bendrucker/builtin-status-codes.svg?branch=master)](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) builtin-status-codes-3.0.0/test.js000066400000000000000000000003131273502404400171070ustar00rootroot00000000000000'use strict' var test = require('tape') var node = require('./') var browser = require('./browser') test(function (t) { t.equal(node[100], 'Continue') t.equal(node[100], browser[100]) t.end() })