Add 101 status code

This commit is contained in:
John Luo 2016-12-28 15:08:15 -08:00 committed by Chris R
parent 991fbb08bc
commit b34bfdd92d
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,8 @@ namespace Microsoft.AspNetCore.Http
{
public static class StatusCodes
{
public const int Status101SwitchingProtocols = 101;
public const int Status200OK = 200;
public const int Status201Created = 201;
public const int Status202Accepted = 202;

View File

@ -9,6 +9,8 @@ namespace Microsoft.AspNetCore.WebUtilities
{
private static IDictionary<int, string> Phrases = new Dictionary<int, string>()
{
{ 101, "Switching Protocols" },
{ 200, "OK" },
{ 201, "Created" },
{ 202, "Accepted" },