phin
phin copied to clipboard
Don't parse JSON if status code is not 2xx
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