@tryghost/errors 1.0.1 → 1.0.2

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 (2) hide show
  1. package/lib/errors.js +9 -0
  2. package/package.json +2 -2
package/lib/errors.js CHANGED
@@ -290,6 +290,15 @@ const ghostErrors = {
290
290
  level: 'critical'
291
291
  }, options));
292
292
  }
293
+ },
294
+ NoContentError: class NoContentError extends GhostError {
295
+ constructor(options) {
296
+ super(merge({
297
+ errorType: 'NoContentError',
298
+ statusCode: 204,
299
+ hideStack: true
300
+ }, options));
301
+ }
293
302
  }
294
303
  };
295
304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/errors",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "repository": "https://github.com/TryGhost/Utils/tree/main/packages/errors",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -27,5 +27,5 @@
27
27
  "dependencies": {
28
28
  "lodash": "^4.17.21"
29
29
  },
30
- "gitHead": "cef9c2f09117b0966380653a9c2be7aa409a9f86"
30
+ "gitHead": "b7a0671a2697bc386af52df3b13312236e295d01"
31
31
  }