2016-08-12 5 views
0

私の質問は、あなたは401エラーメッセージの応答の構造を変更できますか?401エラー応答を変更できますか?

例えば
{ 
    "error": "unauthorized", 
    "error_description": "No AuthenticationProvider found for org.springframework.security.authentication.UsernamePasswordAuthenticationToken" 
} 

{ 
    "timestamp" : 123124354, 
    "status" : 401, 
    "message" : "The username or password are not valid!" 
} 

答えて

関連する問題