Azure / Azure/data-api-builder
Verify if Engine returns 4xx status code properly, or just 200 with sub status code instead
Abierto
cosmos
enhancement
- Lenguaje dominante
- C#
- Estrellas
- 1.5k
- Forks
- 370
- Merge medio
- 3 d 22 h
- PR fusionados (30 d)
- 9
Descripción
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.

Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.