diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-11-25 18:43:36 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-11-25 18:43:36 +0100 |
commit | 2d4733f446dd4e62a554bfe637b1d595571842f8 (patch) | |
tree | 8cd3e25939ddf7acf703a863b21f498a28804cad /ick2/responses.py | |
parent | bdadf8cf1acddcbec060a529bedafd0abb5913f2 (diff) | |
download | ick2-2d4733f446dd4e62a554bfe637b1d595571842f8.tar.gz |
Fix: POST /project with an existing project name fails
Diffstat (limited to 'ick2/responses.py')
-rw-r--r-- | ick2/responses.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ick2/responses.py b/ick2/responses.py index ef68783..1ceae52 100644 --- a/ick2/responses.py +++ b/ick2/responses.py @@ -58,3 +58,10 @@ def created(body): # pragma: no cover 'Content-Type': 'application/json', } return response(apifw.HTTP_CREATED, body, headers) + + +def conflict(body): # pragma: no cover + headers = { + 'Content-Type': 'text/plain', + } + return response(apifw.HTTP_CONFLICT, body, headers) |