res_ari_playback: Add missing 404 error response for GET and DELETE.

(closes issue ASTERISK-22722)
Reported by: Richard Mudgett
........

Merged revisions 402139 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/97/197/1
Joshua Colp 12 years ago
parent ef57947f6d
commit fd98037fe2

@ -85,6 +85,7 @@ static void ast_ari_get_playback_cb(
break;
case 500: /* Internal Server Error */
case 501: /* Not Implemented */
case 404: /* The playback cannot be found */
is_valid = 1;
break;
default:
@ -141,6 +142,7 @@ static void ast_ari_stop_playback_cb(
break;
case 500: /* Internal Server Error */
case 501: /* Not Implemented */
case 404: /* The playback cannot be found */
is_valid = 1;
break;
default:

@ -25,6 +25,12 @@
"allowMultiple": false,
"dataType": "string"
}
],
"errorResponses": [
{
"code": 404,
"reason": "The playback cannot be found"
}
]
},
{
@ -41,6 +47,12 @@
"allowMultiple": false,
"dataType": "string"
}
],
"errorResponses": [
{
"code": 404,
"reason": "The playback cannot be found"
}
]
}
]

Loading…
Cancel
Save