So when I make a POST API call to my server, I get a 400 Bad Request error with JSON response.
{ \"userMessage\": \"Blah\", \"internalMessage\": \"Bad Re
Handle ErrorResponse with your class object
Kotlin
val errorResponse = Gson().fromJson(response.errorBody()!!.charStream(), ErrorResponse::class.java)
Java
ErrorResponse errorResponse = new Gson().fromJson(response.errorBody.charStream(),ErrorResponse.class)