Skip to content

Commit

Permalink
GH-164 Add unauthorized status code to lookup api
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Jul 19, 2020
1 parent c00598a commit a54c8d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Context handleContext(Context context) {
Result<Pair<String[], Repository>, ErrorDto> result = authenticator.authRepository(context, uri);

if (result.containsError()) {
return ErrorUtils.error(context, HttpStatus.SC_UNAUTHORIZED, "Unauthorized request");
return ErrorUtils.error(context, result.getError().getStatus(), result.getError().getMessage());
}

File requestedFile = repositoryService.getFile(uri);
Expand Down

0 comments on commit a54c8d0

Please sign in to comment.