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
        status - the status code, in the range 100-599
        loc - ignored
        the reason phrase, or null