Unit 'httpprotocol' Package
[Overview][Constants][Types][Procedures and functions][Index] [#fcl]

GetHTTPStatusText

Returns descriptive text for HTTP status codes.

Declaration

Source position: httpprotocol.pp line 163

function GetHTTPStatusText(

  ACode: Cardinal;

  aUppercase: Boolean = False

):string;

Arguments

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.


Documentation generated on: Dec 15 2025