Azure / Azure/data-api-builder

Verify if Engine returns 4xx status code properly, or just 200 with sub status code instead

Open
#1,075 4 comments 0 reactions 1 assignee Claimed by @tarazou9 View on GitHub
cosmos enhancement
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

In the case of missing "X-MS-CLIENT-PRINCIPAL" or query entity requires role more than anonymous, it's currently returning hot chocolate error, which is 500 with Error Code AUTH_NOT_AUTHENTICATED, it should return 403 instead.

Below are the current status code the Engine is returning after testing.
![image](https://user-images.githubusercontent.com/40870773/230101235-7a64b15c-58db-46a5-a208-88a719b585c4.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.