diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-08-03 18:25:17 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-08-03 18:25:17 +0300 |
commit | 44a030b692aa6b1d4c9e9105963be34a6513ba12 (patch) | |
tree | e0f00e333b031dfbdeb34ab29cf80022d01ad64d | |
parent | 164091537fb30b16d2d29800f7df001cabb26516 (diff) | |
download | apifw-44a030b692aa6b1d4c9e9105963be34a6513ba12.tar.gz |
Add: HTTP_CONFLICT constant
-rw-r--r-- | apifw/__init__.py | 1 | ||||
-rw-r--r-- | apifw/http.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apifw/__init__.py b/apifw/__init__.py index 970b7c3..e157a22 100644 --- a/apifw/__init__.py +++ b/apifw/__init__.py @@ -22,6 +22,7 @@ from .http import ( HTTP_CREATED, HTTP_NOT_FOUND, HTTP_BAD_REQUEST, + HTTP_CONFLICT, ) from .token import create_token, decode_token from .bottleapp import BottleApplication, create_bottle_application diff --git a/apifw/http.py b/apifw/http.py index e859c07..6b6a1e2 100644 --- a/apifw/http.py +++ b/apifw/http.py @@ -18,6 +18,7 @@ HTTP_OK = 200 HTTP_CREATED = 201 HTTP_NOT_FOUND = 404 HTTP_BAD_REQUEST = 400 +HTTP_CONFLICT = 409 class HttpTransaction: |