Skip to content

Commit

Permalink
HBASE-13069 Thrift Http Server returns an error code of 500 instead o…
Browse files Browse the repository at this point in the history
…f 401 when authentication fails (Srikanth Srungarapu)
  • Loading branch information
tedyu committed Feb 20, 2015
1 parent 365054c commit 03d8918
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -83,6 +83,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
// Send a 401 to the client
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
response.getWriter().println("Authentication Error: " + e.getMessage());
return;
}
}
String doAsUserFromQuery = request.getHeader("doAs");
Expand Down

0 comments on commit 03d8918

Please sign in to comment.