Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Added "308 Permanent Redirect" to ReasonPhrases #925

Merged
merged 1 commit into from
Jul 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public static class ReasonPhrases
private static readonly byte[] _bytesStatus305 = Encoding.ASCII.GetBytes("305 Use Proxy");
private static readonly byte[] _bytesStatus306 = Encoding.ASCII.GetBytes("306 Reserved");
private static readonly byte[] _bytesStatus307 = Encoding.ASCII.GetBytes("307 Temporary Redirect");
private static readonly byte[] _bytesStatus308 = Encoding.ASCII.GetBytes("308 Permanent Redirect");
private static readonly byte[] _bytesStatus400 = Encoding.ASCII.GetBytes("400 Bad Request");
private static readonly byte[] _bytesStatus401 = Encoding.ASCII.GetBytes("401 Unauthorized");
private static readonly byte[] _bytesStatus402 = Encoding.ASCII.GetBytes("402 Payment Required");
Expand Down Expand Up @@ -107,6 +108,8 @@ public static byte[] ToStatusBytes(int statusCode, string reasonPhrase = null)
return _bytesStatus306;
case 307:
return _bytesStatus307;
case 308:
return _bytesStatus308;
case 400:
return _bytesStatus400;
case 401:
Expand Down Expand Up @@ -178,4 +181,4 @@ public static byte[] ToStatusBytes(int statusCode, string reasonPhrase = null)
return Encoding.ASCII.GetBytes(statusCode.ToString(CultureInfo.InvariantCulture) + " " + reasonPhrase);
}
}
}
}