danhuawang opened a new issue, #8497:
URL: https://github.com/apache/gravitino/issues/8497
### What would you like to be improved?
When the metalake "test" is not existed, the response code and message is
not quite right.
PUT
http://192.168.194.174:8090/api/metalakes/test/permissions/users/Lisa/revoke
Response
URL:
http://192.168.194.174:8090/api/metalakes/test/permissions/users/Lisa/revoke
Status code: 403
Content Type: application/json
Request Headers
Accept=application/vnd.gravitino.v1+json
Authorization=Basic TGlzYTpEQHRhJHRyYXQw
Content-Type=application/json
Content Body
{
"roleNames": [
"RoleALLAllow"
]
}
Response Headers
Date: Wed, 10 Sep 2025 09:06:26 GMT
Content-Type: application/json
Content-Length: 145
Server: Jetty(9.4.51.v20230217)
Response Body
{
"code": 1008,
"type": "ForbiddenException",
"message": "User 'Lisa' is not authorized to perform operation
'revokeRolesFromUser' on metadata 'test'"
}
### How should we improve?
The error code: 400
The error message should be like : metalake "test" is not existed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]