Azure / Azure/data-api-builder

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

Offen
#2,691 0 Kommentare 1 Reaktion 1 zugewiesene Person Zugewiesen an @Copilot Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
1.5k
Forks
370
Ø Merge
3 T. 22 Std.
Gemergte PRs (30 T.)
9

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.