Share via


http_response::set_status_code Method

Sets the status code of the response message.

void set_status_code(
   http::status_code code
) const;

Parameters

  • code
    Status code to set.

Remarks

This will overwrite any previously set status code.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_response Class