Class HTTPException

    • Constructor Detail

      • HTTPException

        public HTTPException​(Throwable cause,
                             int newResponseCodeInt,
                             String newResponseLine)
    • Method Detail

      • getResponseCode

        public int getResponseCode()
        Get the HTTP response code, or -1 if the code could not be parsed.
        Returns:
        the code.
      • getResponseLine

        public String getResponseLine()
        Get the HTTP response line, or the first line of the response if it could not be parsed.
        Returns:
        the response.