Add 421 message

This commit is contained in:
2023-01-07 16:30:23 +01:00
parent 5f3cd03a6f
commit 1405036cf2

View File

@ -170,6 +170,7 @@ static int request_handler(client_ctx_t *ctx) {
ctx->conf = get_host_config(ctx->req_host); ctx->conf = get_host_config(ctx->req_host);
if (ctx->conf == NULL) { if (ctx->conf == NULL) {
res->status = http_get_status(421); res->status = http_get_status(421);
strcpy(ctx->err_msg, "The requested host name is not configured on the server.");
return 0; return 0;
} }