Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kHttpServerResponse_SetStatus | ( | kHttpServerResponse | response,
|  | kHttpStatus | status
| ) |  |

Sets the HTTP status code associated with this response.

By default, status code 200 (OK) is assumed.

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

Parameters

  response | Response object.
  status | HTTP status code.

Returns
  Operation status.