MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / constructor

Method constructor

errors/BadRequestError.js:4–17  ·  view source on GitHub ↗
({
    status = 400,
    message,
    name = 'BadRequestError',
    type = 'bad_request',
    errors = [],
  })

Source from the content-addressed store, hash-verified

2
3export default class BadRequestError extends BaseError {
4 constructor({
5 status = 400,
6 message,
7 name = 'BadRequestError',
8 type = 'bad_request',
9 errors = [],
10 }) {
11 super({ message });
12
13 this.name = name;
14 this.status = status;
15 this.type = type;
16 this.errors = errors;
17 }
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected