Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

ReasonPhraseCatalog

org.apache.http.ReasonPhraseCatalog
Known Indirect Subclasses

Class Overview

Interface for obtaining reason phrases for HTTP status codes.

Summary

Public Methods
abstract String getReason (int status, Locale loc)
Obtains the reason phrase for a status code.

Public Methods

public abstract String getReason (int status, Locale loc)

Added in API level 1

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-599
loc the preferred locale for the reason phrase
Returns
  • the reason phrase, or null if unknown