Skip to content

Commit

Permalink
Fix incorrect error message
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Oct 3, 2023
1 parent 828ef2b commit 641c195
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public void checkAndAuthenticateRequest(SecurityRequestChannel requestChannel) t
final OpenSearchException exception = ExceptionUtils.createBadHeaderException();
log.error(exception.toString());
auditLog.logBadHeaders(requestChannel);
requestChannel.completeWithResponse(HttpStatus.SC_UNAUTHORIZED, null, exception.toString());
requestChannel.completeWithResponse(HttpStatus.SC_FORBIDDEN, null, exception.toString());
return;
}

Expand Down

0 comments on commit 641c195

Please sign in to comment.