public static final class JsonErrorResponseHandler.JsonErrorResponse extends Object
Modifier and Type | Method and Description |
---|---|
static JsonErrorResponseHandler.JsonErrorResponse |
fromResponse(HttpResponse response) |
String |
get(String key)
Gets value from the error body map.
|
String |
getErrorCode()
Gets the error code
|
String |
getMessage()
Gets the error message
|
int |
getStatusCode()
Gets the status code of the response header
|
public int getStatusCode()
public String getErrorCode()
public String getMessage()
public String get(String key)
key
- key of mappublic static JsonErrorResponseHandler.JsonErrorResponse fromResponse(HttpResponse response) throws IOException
response
- The HTTP response.IOException
Copyright © 2019. All rights reserved.