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.