improved
Breaking change: Updated user unauthorized error code
June 6th, 2025
🏷️ API version:
2025-07
We've updated the error code for unauthorized user actions from UserUnauthorizedException
to USER_UNAUTHORIZED
. This change helps maintain consistency with other standardized error codes in our API.
Here’s a comparison of the updated and previous responses:
{
"data": {
"me": null
},
"errors": [
{
"message": "User unauthorized to perform action",
"locations": [
{
"line": 1,
"column": 2
}
],
"path": [
"me"
],
"extensions": {
"code": "USER_UNAUTHORIZED",
"status_code": 403,
"error_data": {}
}
}
]
}
{
"data": {
"me": null
},
"errors": [
{
"message": "User unauthorized to perform action",
"locations": [
{
"line": 1,
"column": 2
}
],
"path": [
"me"
],
"extensions": {
"code": "UserUnauthorizedException",
"status_code": 403,
"error_data": {}
}
}
]
}