step-node-agent 3.29.1 → 3.29.3-customJava25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/node_modules/har-validator/node_modules/ajv/README.md +14 -6
  2. package/node_modules/har-validator/node_modules/ajv/dist/ajv.bundle.js +23 -11
  3. package/node_modules/har-validator/node_modules/ajv/dist/ajv.min.js +2 -2
  4. package/node_modules/har-validator/node_modules/ajv/dist/ajv.min.js.map +1 -1
  5. package/node_modules/har-validator/node_modules/ajv/lib/ajv.d.ts +5 -0
  6. package/node_modules/har-validator/node_modules/ajv/lib/compile/index.js +8 -6
  7. package/node_modules/har-validator/node_modules/ajv/lib/dot/pattern.jst +15 -4
  8. package/node_modules/har-validator/node_modules/ajv/lib/dotjs/pattern.js +14 -4
  9. package/node_modules/har-validator/node_modules/ajv/package.json +2 -1
  10. package/node_modules/har-validator/node_modules/ajv/scripts/info +0 -0
  11. package/node_modules/har-validator/node_modules/ajv/scripts/prepare-tests +0 -0
  12. package/node_modules/har-validator/node_modules/ajv/scripts/publish-built-version +0 -0
  13. package/node_modules/har-validator/node_modules/ajv/scripts/travis-gh-pages +0 -0
  14. package/node_modules/minimatch/README.md +37 -0
  15. package/node_modules/minimatch/minimatch.js +160 -102
  16. package/node_modules/minimatch/package.json +2 -2
  17. package/node_modules/qs/.editorconfig +1 -1
  18. package/node_modules/qs/.github/SECURITY.md +11 -0
  19. package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
  20. package/node_modules/qs/CHANGELOG.md +22 -0
  21. package/node_modules/qs/README.md +11 -4
  22. package/node_modules/qs/dist/qs.js +24 -24
  23. package/node_modules/qs/eslint.config.mjs +56 -0
  24. package/node_modules/qs/lib/parse.js +90 -47
  25. package/node_modules/qs/lib/utils.js +83 -11
  26. package/node_modules/qs/package.json +9 -8
  27. package/node_modules/qs/test/parse.js +245 -9
  28. package/node_modules/qs/test/stringify.js +7 -3
  29. package/node_modules/qs/test/utils.js +135 -0
  30. package/node_modules/request/node_modules/qs/CHANGELOG.md +12 -0
  31. package/node_modules/request/node_modules/qs/README.md +9 -3
  32. package/node_modules/request/node_modules/qs/dist/qs.js +10 -10
  33. package/node_modules/request/node_modules/qs/lib/parse.js +4 -4
  34. package/node_modules/request/node_modules/qs/lib/utils.js +6 -6
  35. package/node_modules/request/node_modules/qs/package.json +13 -4
  36. package/node_modules/request/node_modules/qs/test/parse.js +9 -0
  37. package/node_modules/request/node_modules/qs/test/stringify.js +6 -0
  38. package/node_modules/send/HISTORY.md +7 -0
  39. package/node_modules/send/package.json +5 -5
  40. package/node_modules/serve-static/HISTORY.md +6 -0
  41. package/node_modules/serve-static/package.json +2 -2
  42. package/node_modules/underscore/amd/_setup.js +1 -1
  43. package/node_modules/underscore/amd/pipe.js +13 -0
  44. package/node_modules/underscore/cjs/_setup.js +1 -1
  45. package/node_modules/underscore/cjs/pipe.js +12 -0
  46. package/node_modules/underscore/modules/_flatten.js +20 -18
  47. package/node_modules/underscore/modules/_setup.js +1 -1
  48. package/node_modules/underscore/modules/index.js +2 -2
  49. package/node_modules/underscore/modules/isEqual.js +108 -93
  50. package/node_modules/underscore/modules/package.json +1 -1
  51. package/node_modules/underscore/package.json +1 -1
  52. package/node_modules/underscore/underscore-esm-min.js +3 -3
  53. package/node_modules/underscore/underscore-esm-min.js.map +1 -1
  54. package/node_modules/underscore/underscore-esm.js +132 -115
  55. package/node_modules/underscore/underscore-esm.js.map +1 -1
  56. package/node_modules/underscore/underscore-min.js +3 -3
  57. package/node_modules/underscore/underscore-min.js.map +1 -1
  58. package/node_modules/underscore/underscore-node-f.cjs +132 -115
  59. package/node_modules/underscore/underscore-node-f.cjs.map +1 -1
  60. package/node_modules/underscore/underscore-node.cjs +2 -2
  61. package/node_modules/underscore/underscore-node.mjs +2 -2
  62. package/node_modules/underscore/underscore-umd-min.js +3 -3
  63. package/node_modules/underscore/underscore-umd-min.js.map +1 -1
  64. package/node_modules/underscore/underscore-umd.js +132 -115
  65. package/node_modules/underscore/underscore-umd.js.map +1 -1
  66. package/node_modules/underscore/underscore.js +132 -115
  67. package/package.json +1 -1
  68. package/node_modules/qs/.eslintrc +0 -39
  69. package/node_modules/request/node_modules/qs/bower.json +0 -21
  70. package/node_modules/request/node_modules/qs/component.json +0 -15
  71. package/node_modules/send/node_modules/http-errors/HISTORY.md +0 -180
  72. package/node_modules/send/node_modules/http-errors/LICENSE +0 -23
  73. package/node_modules/send/node_modules/http-errors/README.md +0 -169
  74. package/node_modules/send/node_modules/http-errors/index.js +0 -289
  75. package/node_modules/send/node_modules/http-errors/package.json +0 -50
  76. package/node_modules/send/node_modules/statuses/HISTORY.md +0 -82
  77. package/node_modules/send/node_modules/statuses/LICENSE +0 -23
  78. package/node_modules/send/node_modules/statuses/README.md +0 -136
  79. package/node_modules/send/node_modules/statuses/codes.json +0 -65
  80. package/node_modules/send/node_modules/statuses/index.js +0 -146
  81. package/node_modules/send/node_modules/statuses/package.json +0 -49
  82. package/node_modules/serve-static/node_modules/http-errors/HISTORY.md +0 -180
  83. package/node_modules/serve-static/node_modules/http-errors/LICENSE +0 -23
  84. package/node_modules/serve-static/node_modules/http-errors/README.md +0 -169
  85. package/node_modules/serve-static/node_modules/http-errors/index.js +0 -289
  86. package/node_modules/serve-static/node_modules/http-errors/package.json +0 -50
  87. package/node_modules/serve-static/node_modules/ms/index.js +0 -162
  88. package/node_modules/serve-static/node_modules/ms/license.md +0 -21
  89. package/node_modules/serve-static/node_modules/ms/package.json +0 -38
  90. package/node_modules/serve-static/node_modules/ms/readme.md +0 -59
  91. package/node_modules/serve-static/node_modules/send/HISTORY.md +0 -526
  92. package/node_modules/serve-static/node_modules/send/LICENSE +0 -23
  93. package/node_modules/serve-static/node_modules/send/README.md +0 -327
  94. package/node_modules/serve-static/node_modules/send/SECURITY.md +0 -24
  95. package/node_modules/serve-static/node_modules/send/index.js +0 -1142
  96. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/HISTORY.md +0 -14
  97. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/LICENSE +0 -22
  98. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/README.md +0 -128
  99. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/index.js +0 -60
  100. package/node_modules/serve-static/node_modules/send/node_modules/encodeurl/package.json +0 -40
  101. package/node_modules/serve-static/node_modules/send/package.json +0 -62
  102. package/node_modules/serve-static/node_modules/statuses/HISTORY.md +0 -82
  103. package/node_modules/serve-static/node_modules/statuses/LICENSE +0 -23
  104. package/node_modules/serve-static/node_modules/statuses/README.md +0 -136
  105. package/node_modules/serve-static/node_modules/statuses/codes.json +0 -65
  106. package/node_modules/serve-static/node_modules/statuses/index.js +0 -146
  107. package/node_modules/serve-static/node_modules/statuses/package.json +0 -49
  108. package/node_modules/underscore/amd/_set.js +0 -21
  109. package/node_modules/underscore/amd/set.js +0 -15
  110. package/node_modules/underscore/cjs/_set.js +0 -21
  111. package/node_modules/underscore/cjs/set.js +0 -15
@@ -1,289 +0,0 @@
1
- /*!
2
- * http-errors
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2016 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
- 'use strict'
9
-
10
- /**
11
- * Module dependencies.
12
- * @private
13
- */
14
-
15
- var deprecate = require('depd')('http-errors')
16
- var setPrototypeOf = require('setprototypeof')
17
- var statuses = require('statuses')
18
- var inherits = require('inherits')
19
- var toIdentifier = require('toidentifier')
20
-
21
- /**
22
- * Module exports.
23
- * @public
24
- */
25
-
26
- module.exports = createError
27
- module.exports.HttpError = createHttpErrorConstructor()
28
- module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError)
29
-
30
- // Populate exports for all constructors
31
- populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError)
32
-
33
- /**
34
- * Get the code class of a status code.
35
- * @private
36
- */
37
-
38
- function codeClass (status) {
39
- return Number(String(status).charAt(0) + '00')
40
- }
41
-
42
- /**
43
- * Create a new HTTP Error.
44
- *
45
- * @returns {Error}
46
- * @public
47
- */
48
-
49
- function createError () {
50
- // so much arity going on ~_~
51
- var err
52
- var msg
53
- var status = 500
54
- var props = {}
55
- for (var i = 0; i < arguments.length; i++) {
56
- var arg = arguments[i]
57
- var type = typeof arg
58
- if (type === 'object' && arg instanceof Error) {
59
- err = arg
60
- status = err.status || err.statusCode || status
61
- } else if (type === 'number' && i === 0) {
62
- status = arg
63
- } else if (type === 'string') {
64
- msg = arg
65
- } else if (type === 'object') {
66
- props = arg
67
- } else {
68
- throw new TypeError('argument #' + (i + 1) + ' unsupported type ' + type)
69
- }
70
- }
71
-
72
- if (typeof status === 'number' && (status < 400 || status >= 600)) {
73
- deprecate('non-error status code; use only 4xx or 5xx status codes')
74
- }
75
-
76
- if (typeof status !== 'number' ||
77
- (!statuses.message[status] && (status < 400 || status >= 600))) {
78
- status = 500
79
- }
80
-
81
- // constructor
82
- var HttpError = createError[status] || createError[codeClass(status)]
83
-
84
- if (!err) {
85
- // create error
86
- err = HttpError
87
- ? new HttpError(msg)
88
- : new Error(msg || statuses.message[status])
89
- Error.captureStackTrace(err, createError)
90
- }
91
-
92
- if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
93
- // add properties to generic error
94
- err.expose = status < 500
95
- err.status = err.statusCode = status
96
- }
97
-
98
- for (var key in props) {
99
- if (key !== 'status' && key !== 'statusCode') {
100
- err[key] = props[key]
101
- }
102
- }
103
-
104
- return err
105
- }
106
-
107
- /**
108
- * Create HTTP error abstract base class.
109
- * @private
110
- */
111
-
112
- function createHttpErrorConstructor () {
113
- function HttpError () {
114
- throw new TypeError('cannot construct abstract class')
115
- }
116
-
117
- inherits(HttpError, Error)
118
-
119
- return HttpError
120
- }
121
-
122
- /**
123
- * Create a constructor for a client error.
124
- * @private
125
- */
126
-
127
- function createClientErrorConstructor (HttpError, name, code) {
128
- var className = toClassName(name)
129
-
130
- function ClientError (message) {
131
- // create the error object
132
- var msg = message != null ? message : statuses.message[code]
133
- var err = new Error(msg)
134
-
135
- // capture a stack trace to the construction point
136
- Error.captureStackTrace(err, ClientError)
137
-
138
- // adjust the [[Prototype]]
139
- setPrototypeOf(err, ClientError.prototype)
140
-
141
- // redefine the error message
142
- Object.defineProperty(err, 'message', {
143
- enumerable: true,
144
- configurable: true,
145
- value: msg,
146
- writable: true
147
- })
148
-
149
- // redefine the error name
150
- Object.defineProperty(err, 'name', {
151
- enumerable: false,
152
- configurable: true,
153
- value: className,
154
- writable: true
155
- })
156
-
157
- return err
158
- }
159
-
160
- inherits(ClientError, HttpError)
161
- nameFunc(ClientError, className)
162
-
163
- ClientError.prototype.status = code
164
- ClientError.prototype.statusCode = code
165
- ClientError.prototype.expose = true
166
-
167
- return ClientError
168
- }
169
-
170
- /**
171
- * Create function to test is a value is a HttpError.
172
- * @private
173
- */
174
-
175
- function createIsHttpErrorFunction (HttpError) {
176
- return function isHttpError (val) {
177
- if (!val || typeof val !== 'object') {
178
- return false
179
- }
180
-
181
- if (val instanceof HttpError) {
182
- return true
183
- }
184
-
185
- return val instanceof Error &&
186
- typeof val.expose === 'boolean' &&
187
- typeof val.statusCode === 'number' && val.status === val.statusCode
188
- }
189
- }
190
-
191
- /**
192
- * Create a constructor for a server error.
193
- * @private
194
- */
195
-
196
- function createServerErrorConstructor (HttpError, name, code) {
197
- var className = toClassName(name)
198
-
199
- function ServerError (message) {
200
- // create the error object
201
- var msg = message != null ? message : statuses.message[code]
202
- var err = new Error(msg)
203
-
204
- // capture a stack trace to the construction point
205
- Error.captureStackTrace(err, ServerError)
206
-
207
- // adjust the [[Prototype]]
208
- setPrototypeOf(err, ServerError.prototype)
209
-
210
- // redefine the error message
211
- Object.defineProperty(err, 'message', {
212
- enumerable: true,
213
- configurable: true,
214
- value: msg,
215
- writable: true
216
- })
217
-
218
- // redefine the error name
219
- Object.defineProperty(err, 'name', {
220
- enumerable: false,
221
- configurable: true,
222
- value: className,
223
- writable: true
224
- })
225
-
226
- return err
227
- }
228
-
229
- inherits(ServerError, HttpError)
230
- nameFunc(ServerError, className)
231
-
232
- ServerError.prototype.status = code
233
- ServerError.prototype.statusCode = code
234
- ServerError.prototype.expose = false
235
-
236
- return ServerError
237
- }
238
-
239
- /**
240
- * Set the name of a function, if possible.
241
- * @private
242
- */
243
-
244
- function nameFunc (func, name) {
245
- var desc = Object.getOwnPropertyDescriptor(func, 'name')
246
-
247
- if (desc && desc.configurable) {
248
- desc.value = name
249
- Object.defineProperty(func, 'name', desc)
250
- }
251
- }
252
-
253
- /**
254
- * Populate the exports object with constructors for every error class.
255
- * @private
256
- */
257
-
258
- function populateConstructorExports (exports, codes, HttpError) {
259
- codes.forEach(function forEachCode (code) {
260
- var CodeError
261
- var name = toIdentifier(statuses.message[code])
262
-
263
- switch (codeClass(code)) {
264
- case 400:
265
- CodeError = createClientErrorConstructor(HttpError, name, code)
266
- break
267
- case 500:
268
- CodeError = createServerErrorConstructor(HttpError, name, code)
269
- break
270
- }
271
-
272
- if (CodeError) {
273
- // export the constructor
274
- exports[code] = CodeError
275
- exports[name] = CodeError
276
- }
277
- })
278
- }
279
-
280
- /**
281
- * Get a class name from a name identifier.
282
- * @private
283
- */
284
-
285
- function toClassName (name) {
286
- return name.substr(-5) !== 'Error'
287
- ? name + 'Error'
288
- : name
289
- }
@@ -1,50 +0,0 @@
1
- {
2
- "name": "http-errors",
3
- "description": "Create HTTP error objects",
4
- "version": "2.0.0",
5
- "author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
6
- "contributors": [
7
- "Alan Plum <me@pluma.io>",
8
- "Douglas Christopher Wilson <doug@somethingdoug.com>"
9
- ],
10
- "license": "MIT",
11
- "repository": "jshttp/http-errors",
12
- "dependencies": {
13
- "depd": "2.0.0",
14
- "inherits": "2.0.4",
15
- "setprototypeof": "1.2.0",
16
- "statuses": "2.0.1",
17
- "toidentifier": "1.0.1"
18
- },
19
- "devDependencies": {
20
- "eslint": "7.32.0",
21
- "eslint-config-standard": "14.1.1",
22
- "eslint-plugin-import": "2.25.3",
23
- "eslint-plugin-markdown": "2.2.1",
24
- "eslint-plugin-node": "11.1.0",
25
- "eslint-plugin-promise": "5.2.0",
26
- "eslint-plugin-standard": "4.1.0",
27
- "mocha": "9.1.3",
28
- "nyc": "15.1.0"
29
- },
30
- "engines": {
31
- "node": ">= 0.8"
32
- },
33
- "scripts": {
34
- "lint": "eslint . && node ./scripts/lint-readme-list.js",
35
- "test": "mocha --reporter spec --bail",
36
- "test-ci": "nyc --reporter=lcov --reporter=text npm test",
37
- "test-cov": "nyc --reporter=html --reporter=text npm test",
38
- "version": "node scripts/version-history.js && git add HISTORY.md"
39
- },
40
- "keywords": [
41
- "http",
42
- "error"
43
- ],
44
- "files": [
45
- "index.js",
46
- "HISTORY.md",
47
- "LICENSE",
48
- "README.md"
49
- ]
50
- }
@@ -1,82 +0,0 @@
1
- 2.0.1 / 2021-01-03
2
- ==================
3
-
4
- * Fix returning values from `Object.prototype`
5
-
6
- 2.0.0 / 2020-04-19
7
- ==================
8
-
9
- * Drop support for Node.js 0.6
10
- * Fix messaging casing of `418 I'm a Teapot`
11
- * Remove code 306
12
- * Remove `status[code]` exports; use `status.message[code]`
13
- * Remove `status[msg]` exports; use `status.code[msg]`
14
- * Rename `425 Unordered Collection` to standard `425 Too Early`
15
- * Rename `STATUS_CODES` export to `message`
16
- * Return status message for `statuses(code)` when given code
17
-
18
- 1.5.0 / 2018-03-27
19
- ==================
20
-
21
- * Add `103 Early Hints`
22
-
23
- 1.4.0 / 2017-10-20
24
- ==================
25
-
26
- * Add `STATUS_CODES` export
27
-
28
- 1.3.1 / 2016-11-11
29
- ==================
30
-
31
- * Fix return type in JSDoc
32
-
33
- 1.3.0 / 2016-05-17
34
- ==================
35
-
36
- * Add `421 Misdirected Request`
37
- * perf: enable strict mode
38
-
39
- 1.2.1 / 2015-02-01
40
- ==================
41
-
42
- * Fix message for status 451
43
- - `451 Unavailable For Legal Reasons`
44
-
45
- 1.2.0 / 2014-09-28
46
- ==================
47
-
48
- * Add `208 Already Repored`
49
- * Add `226 IM Used`
50
- * Add `306 (Unused)`
51
- * Add `415 Unable For Legal Reasons`
52
- * Add `508 Loop Detected`
53
-
54
- 1.1.1 / 2014-09-24
55
- ==================
56
-
57
- * Add missing 308 to `codes.json`
58
-
59
- 1.1.0 / 2014-09-21
60
- ==================
61
-
62
- * Add `codes.json` for universal support
63
-
64
- 1.0.4 / 2014-08-20
65
- ==================
66
-
67
- * Package cleanup
68
-
69
- 1.0.3 / 2014-06-08
70
- ==================
71
-
72
- * Add 308 to `.redirect` category
73
-
74
- 1.0.2 / 2014-03-13
75
- ==================
76
-
77
- * Add `.retry` category
78
-
79
- 1.0.1 / 2014-03-12
80
- ==================
81
-
82
- * Initial release
@@ -1,23 +0,0 @@
1
-
2
- The MIT License (MIT)
3
-
4
- Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
5
- Copyright (c) 2016 Douglas Christopher Wilson <doug@somethingdoug.com>
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
- THE SOFTWARE.
@@ -1,136 +0,0 @@
1
- # statuses
2
-
3
- [![NPM Version][npm-version-image]][npm-url]
4
- [![NPM Downloads][npm-downloads-image]][npm-url]
5
- [![Node.js Version][node-version-image]][node-version-url]
6
- [![Build Status][ci-image]][ci-url]
7
- [![Test Coverage][coveralls-image]][coveralls-url]
8
-
9
- HTTP status utility for node.
10
-
11
- This module provides a list of status codes and messages sourced from
12
- a few different projects:
13
-
14
- * The [IANA Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)
15
- * The [Node.js project](https://nodejs.org/)
16
- * The [NGINX project](https://www.nginx.com/)
17
- * The [Apache HTTP Server project](https://httpd.apache.org/)
18
-
19
- ## Installation
20
-
21
- This is a [Node.js](https://nodejs.org/en/) module available through the
22
- [npm registry](https://www.npmjs.com/). Installation is done using the
23
- [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
24
-
25
- ```sh
26
- $ npm install statuses
27
- ```
28
-
29
- ## API
30
-
31
- <!-- eslint-disable no-unused-vars -->
32
-
33
- ```js
34
- var status = require('statuses')
35
- ```
36
-
37
- ### status(code)
38
-
39
- Returns the status message string for a known HTTP status code. The code
40
- may be a number or a string. An error is thrown for an unknown status code.
41
-
42
- <!-- eslint-disable no-undef -->
43
-
44
- ```js
45
- status(403) // => 'Forbidden'
46
- status('403') // => 'Forbidden'
47
- status(306) // throws
48
- ```
49
-
50
- ### status(msg)
51
-
52
- Returns the numeric status code for a known HTTP status message. The message
53
- is case-insensitive. An error is thrown for an unknown status message.
54
-
55
- <!-- eslint-disable no-undef -->
56
-
57
- ```js
58
- status('forbidden') // => 403
59
- status('Forbidden') // => 403
60
- status('foo') // throws
61
- ```
62
-
63
- ### status.codes
64
-
65
- Returns an array of all the status codes as `Integer`s.
66
-
67
- ### status.code[msg]
68
-
69
- Returns the numeric status code for a known status message (in lower-case),
70
- otherwise `undefined`.
71
-
72
- <!-- eslint-disable no-undef, no-unused-expressions -->
73
-
74
- ```js
75
- status['not found'] // => 404
76
- ```
77
-
78
- ### status.empty[code]
79
-
80
- Returns `true` if a status code expects an empty body.
81
-
82
- <!-- eslint-disable no-undef, no-unused-expressions -->
83
-
84
- ```js
85
- status.empty[200] // => undefined
86
- status.empty[204] // => true
87
- status.empty[304] // => true
88
- ```
89
-
90
- ### status.message[code]
91
-
92
- Returns the string message for a known numeric status code, otherwise
93
- `undefined`. This object is the same format as the
94
- [Node.js http module `http.STATUS_CODES`](https://nodejs.org/dist/latest/docs/api/http.html#http_http_status_codes).
95
-
96
- <!-- eslint-disable no-undef, no-unused-expressions -->
97
-
98
- ```js
99
- status.message[404] // => 'Not Found'
100
- ```
101
-
102
- ### status.redirect[code]
103
-
104
- Returns `true` if a status code is a valid redirect status.
105
-
106
- <!-- eslint-disable no-undef, no-unused-expressions -->
107
-
108
- ```js
109
- status.redirect[200] // => undefined
110
- status.redirect[301] // => true
111
- ```
112
-
113
- ### status.retry[code]
114
-
115
- Returns `true` if you should retry the rest.
116
-
117
- <!-- eslint-disable no-undef, no-unused-expressions -->
118
-
119
- ```js
120
- status.retry[501] // => undefined
121
- status.retry[503] // => true
122
- ```
123
-
124
- ## License
125
-
126
- [MIT](LICENSE)
127
-
128
- [ci-image]: https://badgen.net/github/checks/jshttp/statuses/master?label=ci
129
- [ci-url]: https://github.com/jshttp/statuses/actions?query=workflow%3Aci
130
- [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/statuses/master
131
- [coveralls-url]: https://coveralls.io/r/jshttp/statuses?branch=master
132
- [node-version-image]: https://badgen.net/npm/node/statuses
133
- [node-version-url]: https://nodejs.org/en/download
134
- [npm-downloads-image]: https://badgen.net/npm/dm/statuses
135
- [npm-url]: https://npmjs.org/package/statuses
136
- [npm-version-image]: https://badgen.net/npm/v/statuses
@@ -1,65 +0,0 @@
1
- {
2
- "100": "Continue",
3
- "101": "Switching Protocols",
4
- "102": "Processing",
5
- "103": "Early Hints",
6
- "200": "OK",
7
- "201": "Created",
8
- "202": "Accepted",
9
- "203": "Non-Authoritative Information",
10
- "204": "No Content",
11
- "205": "Reset Content",
12
- "206": "Partial Content",
13
- "207": "Multi-Status",
14
- "208": "Already Reported",
15
- "226": "IM Used",
16
- "300": "Multiple Choices",
17
- "301": "Moved Permanently",
18
- "302": "Found",
19
- "303": "See Other",
20
- "304": "Not Modified",
21
- "305": "Use Proxy",
22
- "307": "Temporary Redirect",
23
- "308": "Permanent Redirect",
24
- "400": "Bad Request",
25
- "401": "Unauthorized",
26
- "402": "Payment Required",
27
- "403": "Forbidden",
28
- "404": "Not Found",
29
- "405": "Method Not Allowed",
30
- "406": "Not Acceptable",
31
- "407": "Proxy Authentication Required",
32
- "408": "Request Timeout",
33
- "409": "Conflict",
34
- "410": "Gone",
35
- "411": "Length Required",
36
- "412": "Precondition Failed",
37
- "413": "Payload Too Large",
38
- "414": "URI Too Long",
39
- "415": "Unsupported Media Type",
40
- "416": "Range Not Satisfiable",
41
- "417": "Expectation Failed",
42
- "418": "I'm a Teapot",
43
- "421": "Misdirected Request",
44
- "422": "Unprocessable Entity",
45
- "423": "Locked",
46
- "424": "Failed Dependency",
47
- "425": "Too Early",
48
- "426": "Upgrade Required",
49
- "428": "Precondition Required",
50
- "429": "Too Many Requests",
51
- "431": "Request Header Fields Too Large",
52
- "451": "Unavailable For Legal Reasons",
53
- "500": "Internal Server Error",
54
- "501": "Not Implemented",
55
- "502": "Bad Gateway",
56
- "503": "Service Unavailable",
57
- "504": "Gateway Timeout",
58
- "505": "HTTP Version Not Supported",
59
- "506": "Variant Also Negotiates",
60
- "507": "Insufficient Storage",
61
- "508": "Loop Detected",
62
- "509": "Bandwidth Limit Exceeded",
63
- "510": "Not Extended",
64
- "511": "Network Authentication Required"
65
- }