Other 2xx codes
All HTTP status codes in ASP.NET Core
2xx Success
Used inside a WebDAV 207 response (RFC 5842) to avoid listing the same resource twice.
In ASP.NET Core: Not used by typical APIs.
The StatusCodes constant, HttpStatusCode enum name, reason phrase, class, and how EnsureSuccessStatusCode() and the standard resilience handler treat 208.
| Constant | StatusCodes.Status208AlreadyReported |
|---|---|
| HttpStatusCode | HttpStatusCode.AlreadyReported |
| Reason phrase | Kestrel sends Already Reported |
| Class | 2xx, success |
| IsSuccessStatusCode | true |
| EnsureSuccessStatusCode() | does not throw |
| Standard resilience handler | does not retry it |
Results.StatusCode(StatusCodes.Status208AlreadyReported)
Results.Problem(statusCode: StatusCodes.Status208AlreadyReported, detail: "...")StatusCode(StatusCodes.Status208AlreadyReported)
Problem(statusCode: StatusCodes.Status208AlreadyReported, detail: "...")What Results.Problem(statusCode: 208) sends (with AddProblemDetails()), as application/problem+json:
{
"title": "Already Reported",
"status": 208,
"traceId": "0HNA1B2C3D4E5:00000001"
}A controller's Problem(statusCode: 208) sends a different body, because MVC only fills type and title for codes in ApiBehaviorOptions.ClientErrorMapping:
{
"status": 208,
"traceId": "0HNA1B2C3D4E5:00000001"
}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