@NonNull
    public static OkapiError decodeErrorResponse(final Response response) {
        final JSONResult result = new JSONResult(response);
        if (!result.isSuccess) {
            return new OkapiError(result.data);
        }
        return new OkapiError(new ObjectNode(JsonUtils.factory));
    }
Retrieves error information from an unsuccessful Okapi-response

@param response response containing an error object
@return OkapiError object with detailed information
main/src/main/java/cgeo/geocaching/connector/oc/OkapiClient.java