Class HttpException

    • Constructor Detail

      • HttpException

        public HttpException​(int code,
                             @NotNull
                             @NotNull String body,
                             @NotNull
                             @NotNull Headers headers)
    • Method Detail

      • getCode

        public int getCode()
        The HTTP status code
        Returns:
        The status code
      • getBody

        @NotNull
        public @NotNull String getBody()
        The body of HTTP response
        Returns:
        The body
      • getHeaders

        @NotNull
        public @NotNull Headers getHeaders()
        The HTTP headers. Useful to check content-type or rate limit buckets.
        Returns:
        Headers