@tryghost/errors 1.2.8 → 1.2.11
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.
- package/lib/errors.js +9 -0
- package/package.json +3 -3
package/lib/errors.js
CHANGED
|
@@ -170,6 +170,15 @@ const ghostErrors = {
|
|
|
170
170
|
}, options));
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
|
+
RequestNotAcceptableError: class RequestNotAcceptableError extends GhostError {
|
|
174
|
+
constructor(options) {
|
|
175
|
+
super(merge({
|
|
176
|
+
statusCode: 406,
|
|
177
|
+
errorType: 'RequestNotAcceptableError',
|
|
178
|
+
message: 'Request not acceptable for provided Accept-Version header.'
|
|
179
|
+
}, options));
|
|
180
|
+
}
|
|
181
|
+
},
|
|
173
182
|
RequestEntityTooLargeError: class RequestEntityTooLargeError extends GhostError {
|
|
174
183
|
constructor(options) {
|
|
175
184
|
super(merge({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/errors",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"repository": "https://github.com/TryGhost/framework/tree/main/packages/errors",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"c8": "7.11.0",
|
|
23
23
|
"mocha": "9.2.2",
|
|
24
24
|
"should": "13.2.3",
|
|
25
|
-
"sinon": "13.0.
|
|
25
|
+
"sinon": "13.0.2"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"utils-copy-error": "^1.0.1",
|
|
30
30
|
"uuid": "^8.3.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "6a49350821ab2dd54d4b8a1ac7cde27b72aeaca0"
|
|
33
33
|
}
|