GetHTTPStatusText¶
Returns descriptive text for HTTP status codes.
Declaration¶
Source position: httpprotocol.pp line 163
function GetHTTPStatusText(ACode: Cardinal; aUppercase: Boolean=False)
: string;
Arguments¶
| Name | Description |
|---|---|
| ACode | The HTTP status code number. |
| aUppercase | Whether to return uppercase text. |
Function result¶
The descriptive text for the status code.
Description¶
Converts numeric HTTP status codes (100-599) to their standard descriptive text. Supports all common HTTP status codes including informational, success, redirection, client error, and server error responses. Returns "Unknown status: XXX" for unrecognized codes.