From: Vsevolod Stakhov Date: Wed, 20 Jul 2022 20:46:51 +0000 (+0100) Subject: [Minor] Return 401 error code on `Unauthorized` error X-Git-Tag: 3.3~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e4de6c3fee4ed261225684cf2f2f4830ac3ccaf;p=thirdparty%2Frspamd.git [Minor] Return 401 error code on `Unauthorized` error Issue: #4218 --- diff --git a/src/controller.c b/src/controller.c index b72858f0f0..d199b88bcf 100644 --- a/src/controller.c +++ b/src/controller.c @@ -689,7 +689,7 @@ end: } if (!ret) { - rspamd_controller_send_error (entry, 403, "Unauthorized"); + rspamd_controller_send_error (entry, 401, "Unauthorized"); } return ret;