Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API template to use new Problem helpers in error handler #8539

Open
DamianEdwards opened this Issue Mar 14, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@DamianEdwards
Copy link
Member

DamianEdwards commented Mar 14, 2019

Relies on #8537

Update error handler action method to use new problem helper method #8537:

[Route("/error")]
public ActionResult<ProblemDetails> HandleError()
{
    return new ProblemDetails
   {
        Title = "An error occurred while processing your request.",
        Status = 500
    };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.