Azure / Azure/data-api-builder

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

Aperta
#1,075 4 commenti 0 reazioni 1 assegnatario Rivendicata da @tarazou9 Vedi su GitHub
cosmos enhancement
Lingua principale
C#
Stelle
1.5k
Fork
370
Merge medio
3g 22h
PR unite (30g)
9

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.