0

I request JSON from server and normal response looks like: "response" : { "name" : "John", "age" : "100" ... }

But for example if I don't pass access token and try to request any API method then server returns something like: "response" : { "error" : "Access token is invalid" }

How can I catch such errors with Jackson+Retrofit2?

Max
  • 11
  • 2

0 Answers0