Why there is System.Net.HttpStatusCode class and Microsoft.AspNetCore.Http.StatusCodes enum, when both of them seems to do the same?
Example:
public string Foo()
{
int statusCode = StatusCodes.Status409Conflict
// or
int statusCode = (int)HttpStatusCode.Conflict
return $"There is a {statusCode} here."
}