From 497b8e22047fb0efa3397289d23656d6483fdd6d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Dec 2024 11:52:04 -0800 Subject: http: setting response status never fails (breaking API change) --- docs/man/nng_http_res_set_status.3http.adoc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'docs/man') diff --git a/docs/man/nng_http_res_set_status.3http.adoc b/docs/man/nng_http_res_set_status.3http.adoc index e57764d4..a1374941 100644 --- a/docs/man/nng_http_res_set_status.3http.adoc +++ b/docs/man/nng_http_res_set_status.3http.adoc @@ -20,7 +20,7 @@ nng_http_res_set_status - set HTTP response status #include #include -int nng_http_res_set_status(nng_http_res *res, uint16_t status); +void nng_http_res_set_status(nng_http_res *res, uint16_t status); ---- == DESCRIPTION @@ -106,15 +106,6 @@ TIP: It is a good idea to also set the reason message with xref:nng_http_res_set_reason.3http.adoc[`nng_http_set_reason()`]. This will help any humans who may have to diagnose a failure. -== RETURN VALUES - -This function returns 0 on success, and non-zero otherwise. - -== ERRORS - -[horizontal] -`NNG_ENOTSUP`:: No support for HTTP in the library. - == SEE ALSO [.text-left] -- cgit v1.2.3-70-g09d2