Retrofit 2 — Catch Server Errors Globally with Response Interceptor
When we introduced our API error handler we threw all possible non-success responses from the server in one bucket and handled them the same way. But this might not be the best idea. For example, a server response with status code 404 indicates that the resource we're trying to access …
Continue Reading