Commit cbbad3a2 by 段启岩

修改token非法响应码

parent 96567d4d
......@@ -72,10 +72,10 @@ public class AccessInterceptor implements HandlerInterceptor {
int httpStatus;
switch (authorizationErrorCode) {
case NON_HEADER_AUTHORIZATION:
httpStatus = HttpStatus.SC_NON_AUTHORITATIVE_INFORMATION;
httpStatus = HttpStatus.SC_BAD_REQUEST;
break;
case ILLEGAL_HEADER_AUTHORIZATION:
httpStatus = HttpStatus.SC_NON_AUTHORITATIVE_INFORMATION;
httpStatus = HttpStatus.SC_BAD_REQUEST;
break;
case SIGN_VERIFY_FAILURE:
httpStatus = HttpStatus.SC_UNAUTHORIZED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment