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
This commit is contained in:
Joshua Colp
2013-10-29 11:15:59 +00:00
parent ef57947f6d
commit fd98037fe2
2 changed files with 14 additions and 0 deletions

View File

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

View File

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