Skip to content

Commit

Permalink
fix: Improve error message for API key retrieval failure
Browse files Browse the repository at this point in the history
  • Loading branch information
valerydluski authored and astsiapanay committed Sep 19, 2024
1 parent 84662bc commit 6bf3eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/epam/aidial/core/Proxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private void onExtractClaimsFailure(Throwable error, HttpServerRequest request)

private void onGettingApiKeyDataFailure(Throwable error, HttpServerRequest request) {
log.error("Can't find data associated with API key", error);
respond(request, HttpStatus.UNAUTHORIZED, "Bad Authorization header");
respond(request, HttpStatus.UNAUTHORIZED, "Invalid API key");
}

@SneakyThrows
Expand Down

0 comments on commit 6bf3eab

Please sign in to comment.