You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When authentication passes but validation fails, we need to return 403 and not 404.
This is an example of what is in the code on the endpoints
if (!validateUserId(userId)) {
return {
statusCode: 404,
};
}
The status code must be 403.
The text was updated successfully, but these errors were encountered:
When authentication passes but validation fails, we need to return 403 and not 404.
This is an example of what is in the code on the endpoints
if (!validateUserId(userId)) {
return {
statusCode: 404,
};
}
The status code must be 403.
The text was updated successfully, but these errors were encountered: