Class HttpStrings

java.lang.Object
io.aiven.commons.util.strings.HttpStrings

public class HttpStrings extends Object
English reason phrases for HTTP status codes.

The majority of this code is copied from Apache HttpComponents-core

See Also:
  • Method Details

    • getReason

      public static String getReason(int status)
      Obtains the reason phrase for a status code.
      Parameters:
      status - the status code, in the range 100-599
      Returns:
      the reason phrase, or null