orbitjs / orbit

Composable data framework for ambitious web applications.
https://orbitjs.com
MIT License
2.33k stars 134 forks source link

Ensure that fetch errors always throw errors that contain `response` [jsonapi] #925

Closed dgeb closed 2 years ago

dgeb commented 2 years ago

If a server response includes unrecognized content, the fetch should still raise a ClientError or ServerError as appropriate that contains the response. An invalid (i.e. unrecognized) content-type should not take precedence.