Share via


http_response::set_error_code Method

Sets the error code of the response. This is used for errors other than HTTP status codes.

void set_error_code(
   unsigned long code
) const;

Parameters

  • code
    The error code

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_response Class