Share via


ReasonPhrases.GetReasonPhrase(Int32) Method

Definition

Gets the reason phrase for the specified status code.

public:
 static System::String ^ GetReasonPhrase(int statusCode);
public static string GetReasonPhrase (int statusCode);
static member GetReasonPhrase : int -> string
Public Shared Function GetReasonPhrase (statusCode As Integer) As String

Parameters

statusCode
Int32

The status code.

Returns

The reason phrase, or Empty if the status code is unknown.

Applies to