dotnet / dotnet/AspNetCore.Docs

UseStatusCodePagesWithReExecute won't change original http method

Open
#34,302 0 comments 0 reactions 1 assignee Claimed by @tdykstra View on GitHub
:watch: Not Triaged aspnet-core/svc fundamentals/subsvc Source - Docs.ms
Dominant language
C#
Stars
13.1k
Forks
24.6k
Avg merge
1d 2h
Merged PRs (30d)
109

Description

### 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](https://github.com/dotnet/AspNetCore.Docs/issues?q=is%3Aissue+is%3Aopen+38515dfb-91a5-b395-db9d-084bbaf095c8)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.