diff options
Diffstat (limited to 'qvisqve/responses.py')
-rw-r--r-- | qvisqve/responses.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qvisqve/responses.py b/qvisqve/responses.py index d36094e..cd9a89f 100644 --- a/qvisqve/responses.py +++ b/qvisqve/responses.py @@ -37,6 +37,12 @@ def ok_response(body, headers=None): return response(apifw.HTTP_OK, body, headers) +def not_found_response(): + body = 'Not Found\n' + headers = {} + return response(apifw.HTTP_NOT_FOUND, body, headers) + + def created_response(body, location): headers = { 'Content-Type': 'application/json', |