core/src/main/java/net/typedrest/AbstractEndpoint.java
protected void handleResponse(HttpResponse response, Request request)
            throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException {
        handleLinks(response);
        handleCapabilities(response);
        handleErrors(response, request);
    }
protected void handleResponse(HttpResponse response, Request request)
            throws IOException, IllegalArgumentException, IllegalAccessException, FileNotFoundException, IllegalStateException {
        handleLinks(response);
        handleCapabilities(response);
        handleErrors(response, request);
    }
protected void handleResponse ( HttpResponse response , Request request ) throws IOException , IllegalArgumentException , IllegalAccessException , FileNotFoundException , IllegalStateException { handleLinks ( response ) ; handleCapabilities ( response ) ; handleErrors ( response , request ) ; }
Handles the response of a REST request and wraps HTTP status codes in
appropriate {@link Exception} types.

@param response The response to handle.
@param request The original request the reponse is for.

@throws IOException Network communication failed.
@throws IllegalArgumentException {@link HttpStatus#SC_BAD_REQUEST}
@throws IllegalAccessException {@link HttpStatus#SC_UNAUTHORIZED} or
{@link HttpStatus#SC_FORBIDDEN}
@throws FileNotFoundException {@link HttpStatus#SC_NOT_FOUND} or
{@link HttpStatus#SC_GONE}
@throws IllegalStateException
{@link HttpStatus#SC_CONFLICT}, {@link HttpStatus#SC_PRECONDITION_FAILED}
or {@link HttpStatus#SC_REQUESTED_RANGE_NOT_SATISFIABLE}
@throws RuntimeException Other non-success status code.
Handles the response of a REST request and wraps HTTP status codes in appropriate { @link Exception } types .