ResponseError.cause
Home > @backstage/errors
> ResponseError
> cause
The Error cause, as seen by the remote server. This is parsed out of the JSON error body.
This error always has the plain Error constructor, however all serializable enumerable fields on the remote error including its name are preserved. Therefore, if you want to check the error type, use its name property rather than checking typeof or its constructor or prototype.
Signature:
readonly cause: Error;