big update's coming
[mdref/mdref-http] / http / Message / setResponseCode.md
index 58c8d82272922dfb5a06235b316454ed861a3709..71ff8f05f1faa2148480eb8c7af26686088f4a90 100644 (file)
@@ -1,15 +1,22 @@
-# http\Message http\Message::setResponseCode(int $response_code)
+# http\Message http\Message::setResponseCode(int $response_code[, bool $strict = true])
 
 Set the response status code.
 See http\Message::getResponseCode() and http\Message::setResponseStatus().
 
+> **Note:** This method also resets the response status phrase to the default for that code.
+
 ## Params:
 
 * int $response_code  
   The response code.
+* Optional bool $strict = true  
+  Whether to check that the response code is between 100 and 599 inclusive.
 
 ## Returns:
 
 * http\Message, self.
-* false, if the message is not of type response.
 
+## Throws:
+
+* http\Exception\InvalidArgumentException
+* http\Exception\BadMethodCallException