-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
Semver: MajorHas breaking changesHas breaking changesStatus: AbandonedDropped and not into considerationDropped and not into considerationType: EnhancementImproving an existing featureImproving an existing feature
Description
Package version
9.1.0
Describe the bug
Why does the client throws an error when the request return a 500 status code?
It makes no sense to me, including the fact that at the docs we have this:
if (response.hasFatalError()) {
response.error()
}
How could i access reponse.hasFatalError if when the fatal error occurs the client just throw an error and the test stop?
Even if i make a .catch block, the returned value has a prototype of Error, not ApiResponse
Reproduction repo
No response
andrejfidelleanix, patrickJramos and nadlgitmatheussss1
Metadata
Metadata
Assignees
Labels
Semver: MajorHas breaking changesHas breaking changesStatus: AbandonedDropped and not into considerationDropped and not into considerationType: EnhancementImproving an existing featureImproving an existing feature