Class

BadRequestError

BadRequestError(msg) → {BadRequestError}

Constructor

# new BadRequestError(msg) → {BadRequestError}

Represents a failure in the input data, typically thrown when a client sends invalid or incomplete data

Error (40) thrown when a bad request is received

Parameters:
Name Type Description
msg string | Error

The error message or Error object

View Source repository/errors.ts, line 34

A new BadRequestError instance