diff options
-rw-r--r-- | docs/source/routing.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/routing.rst b/docs/source/routing.rst index ec79305..ac74ba8 100644 --- a/docs/source/routing.rst +++ b/docs/source/routing.rst @@ -282,8 +282,8 @@ within Pecan controller code:: username = pecan.request.POST.get('username') password = pecan.request.POST.get('password') - pecan.response.status_int = 403 - pecan.response.body = 'Bad Login!' + pecan.response.status = 403 + pecan.response.text = 'Bad Login!' While Pecan abstracts away much of the need to interact with these objects directly, there may be situations where you want to access them, such as: |