Add 101 status code
This commit is contained in:
parent
991fbb08bc
commit
b34bfdd92d
|
|
@ -5,6 +5,8 @@ namespace Microsoft.AspNetCore.Http
|
||||||
{
|
{
|
||||||
public static class StatusCodes
|
public static class StatusCodes
|
||||||
{
|
{
|
||||||
|
public const int Status101SwitchingProtocols = 101;
|
||||||
|
|
||||||
public const int Status200OK = 200;
|
public const int Status200OK = 200;
|
||||||
public const int Status201Created = 201;
|
public const int Status201Created = 201;
|
||||||
public const int Status202Accepted = 202;
|
public const int Status202Accepted = 202;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ namespace Microsoft.AspNetCore.WebUtilities
|
||||||
{
|
{
|
||||||
private static IDictionary<int, string> Phrases = new Dictionary<int, string>()
|
private static IDictionary<int, string> Phrases = new Dictionary<int, string>()
|
||||||
{
|
{
|
||||||
|
{ 101, "Switching Protocols" },
|
||||||
|
|
||||||
{ 200, "OK" },
|
{ 200, "OK" },
|
||||||
{ 201, "Created" },
|
{ 201, "Created" },
|
||||||
{ 202, "Accepted" },
|
{ 202, "Accepted" },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue