Skip to content

Commit

Permalink
[Minor] Return 401 error code on Unauthorized error
Browse files Browse the repository at this point in the history
Issue: #4218
  • Loading branch information
vstakhov committed Jul 20, 2022
1 parent be88036 commit 5e4de6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.c
Expand Up @@ -689,7 +689,7 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry,
}

if (!ret) {
rspamd_controller_send_error (entry, 403, "Unauthorized");
rspamd_controller_send_error (entry, 401, "Unauthorized");
}

return ret;
Expand Down

0 comments on commit 5e4de6c

Please sign in to comment.