Code example for StatusLine

Methods: getStatusCode

0
    /** 
     * @return The numeric HTTP status code from the server 
     */ 
    public int getHttpStatusCode () 
    { 
        return httpStatusLine == null? -1 : httpStatusLine.getStatusCode();
    } 
 
    /** 
     * @return The HTTP status message from the server 
     */ 
    public String getHttpStatusMessage ()
    { 
        return httpStatusLine == null ? null : httpStatusLine.getReasonPhrase();
    } 
 
    /** 
     * @return The version of HTTP used. 
     */ 
    public String getHttpVersion ()