Skip to content

Docs for handing error pages are not ideal #6420

Open
@ctolkien

Description

@ctolkien

What type of issue is it? (Choose one - delete the others)

Wrong documentation

What article/section is this about?

(link here)

Describe the issue

This section describes intercepting the 500 error response and then redirecting the user to a page to display the error. In this scenario statuscode is lost, and the user never actually receives a 500 error, they end up receiving a 3XX redirection.

This should probably be using some combination of app.UseExceptionHandler("..."); and app.UseStatusCodePagesWithReExecute("/error/{0}");

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Docs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions