{
"detail": "此令牌对任何类型的令牌无效",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid"
}
]
}
{
"type": "client_error",
"errors": [
{
"code": "token_not_valid",
"detail": "此令牌对任何类型的令牌无效",
"attr": "detail"
},
{
"code": "token_not_valid",
"detail": "token_not_valid",
"attr": "code"
},
{
"code": "token_not_valid",
"detail": "AccessToken",
"attr": "messages.0.token_class"
},
{
"code": "token_not_valid",
"detail": "access",
"attr": "messages.0.token_type"
},
{
"code": "token_not_valid",
"detail": "Token is invalid",
"attr": "messages.0.message"
}
]
}
{
"type": "client_error",
"errors": [
{
"code": "token_not_valid",
"detail": "此令牌对任何类型的令牌无效",
"attr": null
},
]
}
Original response data:
Response data after using drf-standardized-errors:
Expected response data: