Documents / @faasjs/browser / ResponseError
Class: ResponseError
ResponseError class
Example:
new ResponseError({
status: 404,
message: 'Not Found',
})
Extends
Error
Constructors
new ResponseError()
new ResponseError(
__namedParameters
):ResponseError
Parameters
• __namedParameters
• __namedParameters.body: any
• __namedParameters.headers: ResponseHeaders
• __namedParameters.message: string
• __namedParameters.status: number
Returns
Overrides
Error.constructor
Properties
body
readonly
body:any
headers
readonly
headers:ResponseHeaders
status
readonly
status:number