You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msgid"HTTP response has status code and message, a set of headers and a body:"
40
41
msgstr""
41
42
42
43
#. type: Fenced code block
43
-
#:en/runtime/response.md
44
+
#:../src/guide/runtime/response.md
44
45
#, no-wrap
45
46
msgid""
46
47
"HTTP/1.1 200 OK\n"
@@ -55,17 +56,17 @@ msgid ""
55
56
msgstr""
56
57
57
58
#. type: Plain text
58
-
#:en/runtime/response.md
59
+
#:../src/guide/runtime/response.md
59
60
msgid"Yii uses [PSR-7 `Response`](https://www.php-fig.org/psr/psr-7/) in the web application to represent response."
60
61
msgstr""
61
62
62
63
#. type: Plain text
63
-
#:en/runtime/response.md
64
+
#:../src/guide/runtime/response.md
64
65
msgid"The object should be constructed and returned as a result of the execution of controller actions or other middleware. Usually, the middleware has a response factory injected into its constructor."
"| 301 | `Status::MOVED_PERMANENTLY` | Permanently changed a URL structure. Search engines update their indexes, and browsers cache it. |\n"
204
+
"| 308 | `Status::PERMANENT_REDIRECT` | Like 301, but guarantees the HTTP method won't change. |\n"
205
+
"| 302 | `Status::FOUND` | Temporary changes like maintenance pages. Original URL should still be used for future requests. Search engines typically don't update their indexes. |\n"
206
+
"| 307 | `Status::TEMPORARY_REDIRECT` | Like 302, but guarantees the HTTP method won't change. |\n"
207
+
"| 303 | `Status::SEE_OTHER` | After form submissions to prevent duplicate submissions if the user refreshes. Explicitly tells to use `GET` for the redirect, even if the original request was `POST`. |\n"
0 commit comments