Skip to content

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

Closed
@DamianEdwards

Description

@DamianEdwards

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
    };
}

Metadata

Metadata

Assignees

Labels

area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing one

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions