Skip to content

Most visited

Recently visited


ReasonPhraseCatalog | Android Developers

to top
Android APIs
Added in API level 1
public interface


Known Indirect Subclasses

Class Overview

Interface for obtaining reason phrases for HTTP status codes.


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.

status the status code, in the range 100-599
loc the preferred locale for the reason phrase
  • the reason phrase, or null if unknown
This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.