Azure / Azure/data-api-builder
Inspect all DataApiBuilderExceptions to determine the correct status code of HotChocolate responses
Aperta
- Lingua principale
- C#
- Stelle
- 1.5k
- Fork
- 370
- Merge medio
- 3g 22h
- PR unite (30g)
- 9
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.