Skip to content

UseStatusCodePagesWithReExecute won't change original http method #34302

@JandosHk

Description

@JandosHk

Description

If original page returns error status code from POST method handler, then StatusCode endpoint should also have OnPost method.
In the example only OnGet is shown.

Page URL

https://learn.microsoft.com/en-au/aspnet/core/fundamentals/error-handling?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/error-handling.md

Document ID

38515dfb-91a5-b395-db9d-084bbaf095c8

Article author

@tdykstra

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions