Commit 638e8cb0 authored by jhodgdon's avatar jhodgdon

Issue #/1536750 by perusio: Fix drupal_goto documentation of status codes

parent a440f52c
...@@ -644,16 +644,17 @@ function drupal_encode_path($path) { ...@@ -644,16 +644,17 @@ function drupal_encode_path($path) {
* @param $options * @param $options
* An associative array of additional URL options to pass to url(). * An associative array of additional URL options to pass to url().
* @param $http_response_code * @param $http_response_code
* Valid values for an actual "goto" as per RFC 2616 section 10.3 are: * The valid values for 3xx redirection status codes are defined in
* - 301 Moved Permanently (the recommended value for most redirects) * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3 RFC 2616 @endlink
* - 302 Found (default in Drupal and PHP, sometimes used for spamming search * and the
* engines) * @link http://tools.ietf.org/html/draft-reschke-http-status-308-07 draft for the new HTTP status codes: @endlink
* - 303 See Other * - 301: Moved Permanently (the recommended value for most redirects).
* - 304 Not Modified * - 302: Found (default in Drupal and PHP, sometimes used for spamming search
* - 305 Use Proxy * engines).
* - 307 Temporary Redirect (alternative to "503 Site Down for Maintenance") * - 303: See Other.
* Note: Other values are defined by RFC 2616, but are rarely used and poorly * - 304: Not Modified.
* supported. * - 305: Use Proxy.
* - 307: Temporary Redirect.
* *
* @see drupal_get_destination() * @see drupal_get_destination()
* @see url() * @see url()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment