Parameter | Description |
---|---|
usStatusCode | Short containing the status code. |
sReason | String with description of the reason (like "OK" or "Not found"). |
usStatusSubCode | Subcode for the status (sent as the decimal like 500.3) usually used for internal error codes. |
Procedure SetResponseStatus UShort usStatusCode String sReason UShort usStatusSubCode
Call: | Send SetResponseStatus usStatusCode sReason usStatusSubCode |
Use this function to set the response status code.
Examples of status codes are 200 (OK), 500 (error), 404 (not found).
If this function is not called, the response will get status 200.
Note that this procedure should be called before data is written to the response body (OutputString / OutputUChar).