Skip to content

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

@Aniruddh25

Description

@Aniruddh25

This is an existing status code determination:

/// The DabGraphQLResultSerializer inspects the IExecutionResult created by HotChocolate

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions