From 5e4de6c3fee4ed261225684cf2f2f4830ac3ccaf Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Jul 2022 21:46:51 +0100 Subject: [PATCH] [Minor] Return 401 error code on `Unauthorized` error Issue: #4218 --- src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.c b/src/controller.c index b72858f0f..d199b88bc 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; -- 2.39.5