commit 5e4de6c: [Minor] Return 401 error code on `Unauthorized` error

Vsevolod Stakhov vsevolod at rspamd.com
Wed Jul 20 21:07:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-07-20 21:46:51 +0100
URL: https://github.com/rspamd/rspamd/commit/5e4de6c3fee4ed261225684cf2f2f4830ac3ccaf (HEAD -> master)

[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;


More information about the Commits mailing list