diff options
author | Jonathan Rose <jrose@digium.com> | 2013-10-25 21:28:32 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-10-25 21:28:32 +0000 |
commit | d8a760307e43031033b5607264f7edd8ecfe73a4 (patch) | |
tree | 782649b82cc96f634615d872044764497caec482 /rest-api/api-docs/bridges.json | |
parent | 7b42a6828a1f98862b673f9e1c2b9a5c105231db (diff) |
ARI recordings: Issue HTTP failures for recording requests with file conflicts
If a file already exists in the recordings directory with the same name as what
we would record, issue a 422 instead of relying on the internal failure and
issuing success.
(closes issue ASTERISK-22623)
Reported by: Joshua Colp
Review: https://reviewboard.asterisk.org/r/2922/
........
Merged revisions 401973 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api/api-docs/bridges.json')
-rw-r--r-- | rest-api/api-docs/bridges.json | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/rest-api/api-docs/bridges.json b/rest-api/api-docs/bridges.json index 819c777db..187522826 100644 --- a/rest-api/api-docs/bridges.json +++ b/rest-api/api-docs/bridges.json @@ -454,20 +454,20 @@ } } ], - "errorResponses": [ - { - "code": 400, - "reason": "Recording name invalid" - }, - { - "code": 404, - "reason": "Bridge not found" - }, - { - "code": 409, - "reason": "Bridge not in Stasis application; Recording already in progress" - } - ] + "errorResponses": [ + { + "code": 400, + "reason": "Invalid parameters" + }, + { + "code": 404, + "reason": "Bridge not found" + }, + { + "code": 409, + "reason": "Bridge is not in a Stasis application; A recording with the same name already exists on the system and can not be overwritten because it is in progress or ifExists=fail" + } + ] } ] } |