We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de954a commit 393e83eCopy full SHA for 393e83e
src/bad-request.js
@@ -0,0 +1,9 @@
1
+"use strict";
2
+
3
+import { HTTPError } from "./http";
4
5
+export class BadRequestError extends HTTPError {
6
+ constructor( message, extra ) {
7
+ super( 400, message || "Bad Request", extra );
8
+ }
9
+}
src/index.js
@@ -1,2 +1,3 @@
export { HTTPError } from "./http";
export { AccessDeniedError } from "./access-denied";
+export { BadRequestError } from "./bad-request";
0 commit comments