phin icon indicating copy to clipboard operation
phin copied to clipboard

Don't parse JSON if status code is not 2xx

Open jdforsythe opened this issue 3 years ago • 0 comments

Fixes #61

Prevents parsing body as JSON unless the status code is in the 2xx range to allow 4xx and 5xx errors to propagate without JSON parsing errors

jdforsythe avatar Mar 02 '21 02:03 jdforsythe