silc_http_server_send_error
SYNOPSIS
SilcBool silc_http_server_send_error(SilcHttpServer httpd, SilcHttpConnection conn, const char *error, const char *error_message);
DESCRIPTION
Send HTTP error back to the connection indicated by `conn'. The `error' is one of the 4xx or 5xx errors defined by the HTTP protocol. The `error_message' is the optional error message sent to the connection. Returns FALSE if the error could not be sent.
Typical errors are: 400 Bad Request
403 Forbidden 404 Not Found
EXAMPLE
silc_http_server_send_error(httpd, conn, "400 Bad Request", "<body><h1>400 Bad Request!!</h1></body>");