Options
All
  • Public
  • Public/Protected
  • All
Menu

Error getting thrown if the request contains a malformed request body.

Hierarchy

  • Error
    • ErrorBadRequest

Index

Constructors

  • Parameters

    • Optional message: string

    Returns ErrorBadRequest

Properties

code: number = 400
message: string = "The request is malformed and won't be processed."
name: string = "Bad Request"
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc