Package org.apache.http
Interface ReasonPhraseCatalog
- All Known Implementing Classes:
EnglishReasonPhraseCatalog
public interface ReasonPhraseCatalog
Interface for obtaining reason phrases for HTTP status codes.
- Since:
- 4.0
- Version:
- $Revision: 505744 $
- Author:
- Roland Weber
-
Method Summary
-
Method Details
-
getReason
Obtains the reason phrase for a status code. The optional context allows for catalogs that detect the language for the reason phrase.- Parameters:
status- the status code, in the range 100-599loc- the preferred locale for the reason phrase- Returns:
- the reason phrase, or
nullif unknown
-