Class BadStatusCodeException

  • All Implemented Interfaces:
    Serializable

    public class BadStatusCodeException
    extends Exception
    Exception thrown when a bad HTTP (e.g. 404 or 500 etc.) status code is received from the server.
    Since:
    8.5.0
    See Also:
    Serialized Form
    • Constructor Detail

      • BadStatusCodeException

        public BadStatusCodeException​(int statusCode)
    • Method Detail

      • statusCode

        public int statusCode()
        Gets the HTTP status code that caused the exception.
        Returns:
        The HTTP status code.