diff options
author | David M. Lee <dlee@digium.com> | 2013-07-10 17:13:21 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-07-10 17:13:21 +0000 |
commit | 15036c297985dbb40e5bc7f92983863a1712493f (patch) | |
tree | 2672e4b1e074329a8665c451924d948467b9bce7 | |
parent | a73394abb874221ab3ae23348b285b217c1ee120 (diff) |
Document the 400 error response for originate
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | res/res_stasis_http_channels.c | 1 | ||||
-rw-r--r-- | rest-api/api-docs/channels.json | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/res/res_stasis_http_channels.c b/res/res_stasis_http_channels.c index 5c150dffb..050ef00d1 100644 --- a/res/res_stasis_http_channels.c +++ b/res/res_stasis_http_channels.c @@ -142,6 +142,7 @@ static void stasis_http_originate_cb( switch (code) { case 500: /* Internal server error */ + case 400: /* Invalid parameters for originating a channel. */ is_valid = 1; break; default: diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json index c442d8eb3..07c9750a7 100644 --- a/rest-api/api-docs/channels.json +++ b/rest-api/api-docs/channels.json @@ -88,6 +88,12 @@ "dataType": "int", "defaultValue": 30 } + ], + "errorResponses": [ + { + "code": 400, + "reason": "Invalid parameters for originating a channel." + } ] } ] |