如何为权限类创建自定义响应
现在的回应是:
{"detail": "Authentication credentials were not provided."}
我想要的回应:
{
"status": 403,
"message": "Authentication credentials were not provided",
"response": {....}
}
如何为权限类创建自定义响应
现在的回应是:
{"detail": "Authentication credentials were not provided."}
我想要的回应:
{
"status": 403,
"message": "Authentication credentials were not provided",
"response": {....}
}