]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Return 401 error code on `Unauthorized` error
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 20 Jul 2022 20:46:51 +0000 (21:46 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 20 Jul 2022 20:46:51 +0000 (21:46 +0100)
Issue: #4218

src/controller.c

index b72858f0f02386f75d375cc98a2f1c0dd4637e69..d199b88bcf67b6a2225dbe1dad4d492b6f49e1b2 100644 (file)
@@ -689,7 +689,7 @@ end:
        }
 
        if (!ret) {
-               rspamd_controller_send_error (entry, 403, "Unauthorized");
+               rspamd_controller_send_error (entry, 401, "Unauthorized");
        }
 
        return ret;