FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/react / ResponseErrorProps

Type Alias: ResponseErrorProps

ResponseErrorProps = object

Input accepted by the ResponseError constructor.

Properties

body?

optional body?: any

Raw error body or structured error payload.

Default

{
  error: {
    message
  }
}

headers?

optional headers?: ResponseHeaders

Response headers returned with the error.

Default

{
}

message

message: string

User-facing error message.

originalError?

optional originalError?: Error

Original error preserved when this instance wraps another exception.

status?

optional status?: number

HTTP status code reported for the error.

Default

500