Closed Christian-Athom closed 3 years ago
The problem with that is that in the app you cannot know if the response was 20x and the return body was empty, or that the error wan genuine. This is because the .json() call on the respons throws when the body is an empty string.
Still, you can overload onHandleResponse
in your app.
Which API is this, by the way?
Honeywell Lyric Api
OK. Please fix it there, I want to to keep this module W3-spec compliant and not introduce hacks.
FYI They should not return the JSON header, and a 204
status code.
I don't think this is the right place. It means the API is broken, and should be overloaded in the app's OAuth2Client.