Class HttpStatusCode


  • public class HttpStatusCode
    extends java.lang.Object
    • Method Detail

      • isSuccessful

        public static boolean isSuccessful​(int statusCode)
        Returns true for any 2XX HTTP status code.
      • isServerError

        public static boolean isServerError​(int statusCode)
        Returns true for any 5XX HTTP status code.
      • isRetryable

        public static boolean isRetryable​(int statusCode)
        Returns true for an HTTP status code that could reasonably be retried.