Type guard to check if an error is an HTTP error with a response status code. This safely narrows the type without unsafe type assertions.
The error to check
True if the error has a response.status property
Type guard to check if an error is an HTTP error with a response status code. This safely narrows the type without unsafe type assertions.