|
@@ -19,6 +19,8 @@
|
|
package org.hswebframework.web.authorization.exception;
|
|
package org.hswebframework.web.authorization.exception;
|
|
|
|
|
|
import org.hswebframework.web.authorization.token.TokenState;
|
|
import org.hswebframework.web.authorization.token.TokenState;
|
|
|
|
+import org.springframework.http.HttpStatus;
|
|
|
|
+import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 未授权异常
|
|
* 未授权异常
|
|
@@ -26,6 +28,7 @@ import org.hswebframework.web.authorization.token.TokenState;
|
|
* @author zhouhao
|
|
* @author zhouhao
|
|
* @since 3.0
|
|
* @since 3.0
|
|
*/
|
|
*/
|
|
|
|
+@ResponseStatus(HttpStatus.UNAUTHORIZED)
|
|
public class UnAuthorizedException extends RuntimeException {
|
|
public class UnAuthorizedException extends RuntimeException {
|
|
private static final long serialVersionUID = 2422918455013900645L;
|
|
private static final long serialVersionUID = 2422918455013900645L;
|
|
|
|
|