Skip to content
This repository
Browse code

add some missing HTTP status codes

  • Loading branch information...
commit faef983b36c244ddbbb1ab33ed0ff0bc6594e040 1 parent 77142a0
Steve Vinoski authored October 01, 2012

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. 15  src/yaws_api.erl
15  src/yaws_api.erl
@@ -520,6 +520,7 @@ do_parse_spec(QueryList, Last, Cur, State) when is_list(QueryList) ->
520 520
 
521 521
 code_to_phrase(100) -> "Continue";
522 522
 code_to_phrase(101) -> "Switching Protocols ";
  523
+code_to_phrase(102) -> "Processing";
523 524
 code_to_phrase(200) -> "OK";
524 525
 code_to_phrase(201) -> "Created";
525 526
 code_to_phrase(202) -> "Accepted";
@@ -528,6 +529,8 @@ code_to_phrase(204) -> "No Content";
528 529
 code_to_phrase(205) -> "Reset Content";
529 530
 code_to_phrase(206) -> "Partial Content";
530 531
 code_to_phrase(207) -> "Multi Status";
  532
+code_to_phrase(208) -> "Already Reported";
  533
+code_to_phrase(226) -> "IM Used";
531 534
 code_to_phrase(300) -> "Multiple Choices";
532 535
 code_to_phrase(301) -> "Moved Permanently";
533 536
 code_to_phrase(302) -> "Found";
@@ -536,6 +539,7 @@ code_to_phrase(304) -> "Not Modified";
536 539
 code_to_phrase(305) -> "Use Proxy";
537 540
 code_to_phrase(306) -> "(Unused)";
538 541
 code_to_phrase(307) -> "Temporary Redirect";
  542
+code_to_phrase(308) -> "Permanent Redirect";
539 543
 code_to_phrase(400) -> "Bad Request";
540 544
 code_to_phrase(401) -> "Unauthorized";
541 545
 code_to_phrase(402) -> "Payment Required";
@@ -554,6 +558,13 @@ code_to_phrase(414) -> "Request-URI Too Long";
554 558
 code_to_phrase(415) -> "Unsupported Media Type";
555 559
 code_to_phrase(416) -> "Requested Range Not Satisfiable";
556 560
 code_to_phrase(417) -> "Expectation Failed";
  561
+code_to_phrase(418) -> "I'm a teapot";
  562
+code_to_phrase(420) -> "Enhance Your Calm";
  563
+code_to_phrase(422) -> "Unprocessable Entity";
  564
+code_to_phrase(423) -> "Locked";
  565
+code_to_phrase(424) -> "Method Failure";
  566
+code_to_phrase(425) -> "Unordered Collection";
  567
+code_to_phrase(426) -> "Upgrade Required";
557 568
 code_to_phrase(428) -> "Precondition Required";
558 569
 code_to_phrase(429) -> "Too Many Requests";
559 570
 code_to_phrase(431) -> "Request Header Fields Too Large";
@@ -563,6 +574,10 @@ code_to_phrase(502) -> "Bad Gateway";
563 574
 code_to_phrase(503) -> "Service Unavailable";
564 575
 code_to_phrase(504) -> "Gateway Timeout";
565 576
 code_to_phrase(505) -> "HTTP Version Not Supported";
  577
+code_to_phrase(506) -> "Variant Also Negotiates";
  578
+code_to_phrase(507) -> "Insufficient Storage";
  579
+code_to_phrase(508) -> "Loop Detected";
  580
+code_to_phrase(510) -> "Not Extended";
566 581
 code_to_phrase(511) -> "Network Authentication Required";
567 582
 
568 583
 %% Below are some non-HTTP status codes from other protocol standards that

0 notes on commit faef983

Please sign in to comment.
Something went wrong with that request. Please try again.