Web.HTTPApp.StatusString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StatusString(StatusCode: Integer): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall StatusString(int StatusCode);

Properties

Type Visibility Source Unit Parent
function public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp Web.HTTPApp

Description

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

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.

See Also