Language

EnglishReasonPhraseCatalog.GetReason(Int32, Locale) Method

Definition

Gets the English reason phrase for an HTTP status code in the range 100 through 599.

[Android.Runtime.Register("getReason", "(ILjava/util/Locale;)Ljava/lang/String;", "GetGetReason_ILjava_util_Locale_Handler")]
public virtual string? GetReason(int status, Java.Util.Locale? loc);
[<Android.Runtime.Register("getReason", "(ILjava/util/Locale;)Ljava/lang/String;", "GetGetReason_ILjava_util_Locale_Handler")>]
abstract member GetReason : int * Java.Util.Locale -> string
override this.GetReason : int * Java.Util.Locale -> string

Parameters

status
Int32

The HTTP status code, in the range 100 through 599.

loc
Locale

Ignored.

Returns

The reason phrase for the status code, or null when none is defined.

Implements

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to