From c8a29235b5c895ece454ea65389c1eb9ee48f89a Mon Sep 17 00:00:00 2001 From: Amr Saber Date: Mon, 16 Nov 2020 14:48:30 +0200 Subject: [PATCH] Update response-helpers.md (#19189) Update the mentioned redirection status message. --- docs/api-routes/response-helpers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-routes/response-helpers.md b/docs/api-routes/response-helpers.md index 094101aa1319f..aef95d69e53ed 100644 --- a/docs/api-routes/response-helpers.md +++ b/docs/api-routes/response-helpers.md @@ -25,4 +25,4 @@ The included helpers are: - `res.status(code)` - A function to set the status code. `code` must be a valid [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) - `res.json(json)` - Sends a JSON response. `json` must be a valid JSON object - `res.send(body)` - Sends the HTTP response. `body` can be a `string`, an `object` or a `Buffer` -- `res.redirect([status,] path)` - Redirects to a specified path or URL. `status` must be a valid [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes). If not specified, `status` defaults to "307" "Found". +- `res.redirect([status,] path)` - Redirects to a specified path or URL. `status` must be a valid [HTTP status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes). If not specified, `status` defaults to "307" "Temporary redirect".