Azure / Azure/data-api-builder
Inspect all DataApiBuilderExceptions to determine the correct status code of HotChocolate responses
Open
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 370
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 8
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.