Documents / @faasjs/react / ResponseErrorProps
Type Alias: ResponseErrorProps
ResponseErrorProps =
object
Input accepted by the ResponseError constructor.
Properties
body?
optionalbody?:any
Raw error body or structured error payload.
Default
{
error: {
message
}
}
headers?
optionalheaders?:ResponseHeaders
Response headers returned with the error.
Default
{
}
message
message:
string
User-facing error message.
originalError?
optionaloriginalError?:Error
Original error preserved when this instance wraps another exception.
status?
optionalstatus?:number
HTTP status code reported for the error.
Default
500