Skip to main content

ec_httpsrv_response_status_not_found

Last updated March 2020

Name

ec_httpsrv_response_status_not_found — Sets the HTTP status to indicate a 404 error, and sets content-type

Synopsis

#include "modules/listeners/httpsrv.h"

| int **ec_httpsrv_response_status_not_found** ( | sess, |   | |   | type); |   |

ec_httpsrv_session * <var class="pdparam">sess</var>; const char * <var class="pdparam">type</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Sets the HTTP status to indicate a 404 error, and sets content-type.

Parameters

sess

the session to modify

type

the content type to set

Return Values

0 if successful, else returns an errno indicating what went wrong.

This function is equivalent to setting the status to 404 NOT FOUND and setting the Content-Type: header to the value of type.

Was this page helpful?