Skip to content

DeveloperExceptionPageMiddleware should set response status code from BadHttpRequestException #35857

Closed
@DamianEdwards

Description

@DamianEdwards

If the exception caught by DeveloperExceptionPageMiddleware is of type BadHttpRequestException, it should set the response status code to the value of BadHttpRequestException.StatusCode rather than 500.

Metadata

Metadata

Assignees

Labels

Priority:2Work that is important, but not critical for the releasearea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-diagnosticsDiagnostic middleware and pages (except EF diagnostics)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions