Embedded TCP/IP stack
4.7.0
|
void fnet_http_srv_set_response_status_code | ( | fnet_http_srv_session_t | session, |
fnet_http_srv_status_code_t | status_code | ||
) |
Sets status code in HTTP response status-line.
session | HTTP session handle. |
status_code | HTTP Response Status-Code. |
If the HTTP server works according to HTTP/1.x (FNET_CFG_HTTP_SRV_VERSION_MAJOR is 1
), this function may be used to change the default HTTP response status-code.