RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
HTTPApp.StatusString Function

Returns the explanatory string associated with one of the predefined HTTP response status codes.

Pascal
function StatusString(StatusCode: Integer): AnsiString;
C++
AnsiString StatusString(int StatusCode);

The HTTP protocol specification defines a number of standard status codes that indicate the status of an HTTP request message. HTTP applications interpret these status codes, but for human beings, each of these codes has a corresponding string that provides a more understandable indication of the status of the HTTP request. 

Call StatusString to obtain the string that corresponds to a standard status code. If the StatusCode parameter is not one of the codes defined in the HTTP standard, StatusString returns an empty string. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!