summaryrefslogtreecommitdiff
path: root/qvisqve/responses.py
diff options
context:
space:
mode:
Diffstat (limited to 'qvisqve/responses.py')
-rw-r--r--qvisqve/responses.py6
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',