BadRequestException
Defines an HTTP exception for Bad Request type errors.
  
class BadRequestException extends HttpException {
  constructor(objectOrError?: any, descriptionOrOptions: string | HttpExceptionOptions = 'Bad Request')
  // inherited from nest/packages/common/HttpException
  static createBody<Body extends Record<string, unknown>>(arg0: HttpExceptionBodyMessage | Body, arg1?: HttpExceptionBodyMessage, statusCode?: number): HttpExceptionBody | Body
  static getDescriptionFrom(descriptionOrOptions: string | HttpExceptionOptions): string
  static getHttpExceptionOptionsFrom(descriptionOrOptions: string | HttpExceptionOptions): HttpExceptionOptions
  static extractDescriptionAndOptionsFrom(descriptionOrOptions: string | HttpExceptionOptions): DescriptionAndOptions
  constructor(response: string | Record<string, any>, status: number, options?: HttpExceptionOptions)
  cause: unknown
  initCause(): void
  initMessage()
  initName(): void
  getResponse(): string | object
  getStatus(): number
  // inherited from nest/packages/common/IntrinsicException
}
  
  
  
See also
Constructor
| Instantiate a  | |||||||||
| Parameters
 Examples     | |||||||||
| Usage NotesThe HTTP response status code will be 400. 
 By default, the JSON response body contains two properties: 
 If the parameter  |