# mco_lews_send_response_err
RT

### Prototype

        MCO_RET mco_lews_send_response_err(lews_connection_context_h client_ctx_handle, int http_status_code, MCO_RET rc);

### Arguments

client_ctx_handle
The connection context handle.
http_status_code
The HTTP error code (supported: 400, 403, 404, 405, 500).
rc
Additional return code.

### Description

> The `mco_lews_send_response_err()` function sends a standard HTTP response with an HTTP error code.

### Return Codes

MCO_S_OK
No errors.
MCO_E_LEWS_ERROR_AFTER_SEND
The response has already been sent.
MCO_E_NW_SENDERR
Error occurred while sending the response.

### Files

Header file:
mcoewslite.h
Source file:
mcoewslite.c
Library:
mcoewslite.a