Code example for StatusLine

Methods: getReasonPhrase, getStatusCode

0
        try { 
            completedThenConsume(response);
        } catch(Exception e) {
            sendFailureMessage(e, "Failed constructed response");
        }finally { 
            if(status.getStatusCode() >= 300) {
                sendFailureMessage(new HttpResponseException(status.getStatusCode(), status.getReasonPhrase()), "");
            } 
        } 
    } 
}