Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RequestError

An RequestError is returned as an error from requests that result in a 300 <= error code <= 500.

Hierarchy

  • Error
    • RequestError

Index

Constructors

constructor

  • new RequestError(req: ClientRequest, res: IncomingMessage, body: string): RequestError

Properties

req

req: ClientRequest

res

res: IncomingMessage

statusCode

statusCode: number

statusMessage

statusMessage: string

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: string

Methods

Static Create

  • Create(req: ClientRequest, res: IncomingMessage, callback: function): void

Generated using TypeDoc