Class HTTPException

    • Constructor Detail

      • HTTPException

        public HTTPException​(int newResponseCodeInt,
                             String newResponseLine)
      • HTTPException

        @Deprecated(since="2025.3",
                    forRemoval=true)
        public HTTPException​(Throwable cause,
                             int newResponseCodeInt,
                             String newResponseLine)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getResponseCode

        public int getResponseCode()
        Get the HTTP response code
        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.