summaryrefslogtreecommitdiff
path: root/rest-api
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-02-21 20:47:19 +0000
committerJoshua Colp <jcolp@digium.com>2015-02-21 20:47:19 +0000
commitf726304283251f811b4d73e6d958baac45e37efa (patch)
tree8bbb0210333f58ca9a3c469e238a0fead4bd00dd /rest-api
parent7a507ae31a8e1d890733ddbbf0657de3fd708b86 (diff)
res_ari_channels: Return a 404 response when a requested channel variable does not exist.
This change makes it so that if a channel variable is requested and it does not exist a 404 response will be returned instead of an allocation failed response. This makes it easier to debug and figure out what is going on for a user. ASTERISK-24677 #close Reported by: Joshua Colp git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api')
-rw-r--r--rest-api/api-docs/channels.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json
index 9a0a4f356..9bcfda978 100644
--- a/rest-api/api-docs/channels.json
+++ b/rest-api/api-docs/channels.json
@@ -1199,7 +1199,7 @@
},
{
"code": 404,
- "reason": "Channel not found"
+ "reason": "Channel or variable not found"
},
{
"code": 409,