Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kHttpServerResponse_SetReason | ( | kHttpServerResponse | response,
|  | const kChar * | reason
| ) |  |

Sets the HTTP status description associated with this response.

If a custom description is not provided, a default description based on the status code will be sent.

This function can only be called prior to writing the message body.

Parameters

  response | Response object.
  reason | HTTP status description.

Returns
  Operation status.