From e2fdf28e97695e9bcc4ea962bfcfefee70510e33 Mon Sep 17 00:00:00 2001 From: BobStevens Date: Thu, 27 Jun 2013 16:31:04 -0400 Subject: [PATCH 1/2] word change for clarity changed "200 error code" to "200 status code" --- docs/quickstart.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index b455e070..19242c5d 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -667,7 +667,7 @@ About Responses The return value from a view function is automatically converted into a response object for you. If the return value is a string it's converted into a response object with the string as response body, an ``200 OK`` -error code and a ``text/html`` mimetype. The logic that Flask applies to +status code and a ``text/html`` mimetype. The logic that Flask applies to converting return values into response objects is as follows: 1. If a response object of the correct type is returned it's directly From 9fe209b497ca6f51ffbb0bfc9d0131240067d807 Mon Sep 17 00:00:00 2001 From: BobStevens Date: Thu, 27 Jun 2013 16:32:20 -0400 Subject: [PATCH 2/2] fixed typo --- docs/quickstart.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 19242c5d..9d96b00a 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -666,7 +666,7 @@ About Responses The return value from a view function is automatically converted into a response object for you. If the return value is a string it's converted -into a response object with the string as response body, an ``200 OK`` +into a response object with the string as response body, a ``200 OK`` status code and a ``text/html`` mimetype. The logic that Flask applies to converting return values into response objects is as follows: