Skip to content

Commit

Permalink
Expand status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG committed Jan 25, 2018
1 parent 3f90445 commit b20424d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common.rs
Expand Up @@ -49,6 +49,7 @@ impl StatusCode {
304 => "Not Modified",
305 => "Use Proxy",
307 => "Temporary Redirect",
308 => "Permanent Redirect",
400 => "Bad Request",
401 => "Unauthorized",
402 => "Payment Required",
Expand All @@ -67,6 +68,12 @@ impl StatusCode {
415 => "Unsupported Media Type",
416 => "Request range not satisfiable",
417 => "Expectation Failed",
421 => "Misdirected Request",
426 => "Upgrade Required",
428 => "Precondition Required",
429 => "Too Many Requests",
431 => "Request Header Fields Too Large",
451 => "Unavailable For Legal Reasons",
500 => "Internal Server Error",
501 => "Not Implemented",
502 => "Bad Gateway",
Expand Down

0 comments on commit b20424d

Please sign in to comment.