Azure / Azure/data-api-builder

Inspect all DataApiBuilderExceptions to determine the correct status code of HotChocolate responses

Abierto
#2,691 0 comentarios 1 reacción 1 asignado Asignado a @Copilot Ver en GitHub
Lenguaje dominante
C#
Estrellas
1.5k
Forks
370
Merge medio
3 d 22 h
PR fusionados (30 d)
9

Descripción

This is an existing status code determination:
https://github.com/Azure/data-api-builder/blob/7f8fa6b4a7468582e6015df96f75f3cf8c0987f9/src/Core/Services/DabGraphQLResultSerializer.cs#L12
not relevant to the migration done in this PR.

Auth errors will automatically result in 401 already. Similar to DetermineStatusCodeMiddleware, this issue is to look at all possible other exception states in DABException and map it to BadRequest - some of them states apply only to REST APIs. This should be tackled in a separate issue.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.