ec_httpsrv_response_status_error — Sets the HTTP status to indicate a server error, and sets content-type
int **ec_httpsrv_response_status_error** ( | sess, | |
| | type
); | |
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 server error, and sets content-type.
the session to modify
the content type to set
0 if successful, else returns an errno indicating what went wrong.
This function is equivalent to setting the status to 500 ERROR and setting the Content-Type: header to the value of type.