Other 2xx codes
All HTTP status codes in ASP.NET Core
2xx Success
The request succeeded and the client should reset the form or view that sent it. The response must not have a body.
In ASP.NET Core: Rare in APIs. Never write a body with it.
The StatusCodes constant, HttpStatusCode enum name, reason phrase, class, and how EnsureSuccessStatusCode() and the standard resilience handler treat 205.
| Constant | StatusCodes.Status205ResetContent |
|---|---|
| HttpStatusCode | HttpStatusCode.ResetContent |
| Reason phrase | Kestrel sends Reset Content |
| Class | 2xx, success |
| IsSuccessStatusCode | true |
| EnsureSuccessStatusCode() | does not throw |
| Standard resilience handler | does not retry it |
Results.StatusCode(StatusCodes.Status205ResetContent)StatusCode(StatusCodes.Status205ResetContent)205 must not have a body. In our test, Results.Problem(statusCode: 205) and Problem(statusCode: 205) never completed the response.
Every response on this page was recorded from ASP.NET Core 10.0.12 on Kestrel in the Production environment; the HttpClient rows come from .NET 10.0.12 and Microsoft.Extensions.Http.Resilience 10.10.0.
All HTTP status codes in ASP.NET Core