Class EnglishReasonPhraseCatalog

    • Field Detail

      • INSTANCE

        public static final EnglishReasonPhraseCatalog INSTANCE
        The default instance of this catalog. This catalog is thread safe, so there typically is no need to create other instances.
    • Method Detail

      • getReason

        public String getReason​(int status,
                                Locale loc)
        Obtains the reason phrase for a status code.
        Specified by:
        getReason in interface ReasonPhraseCatalog
        Parameters:
        status - the status code, in the range 100-599
        loc - ignored
        Returns:
        the reason phrase, or null