Skip to content
Snippets Groups Projects
Commit fd98037f authored by Joshua Colp's avatar Joshua Colp
Browse files

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
parent ef57947f
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,7 @@ static void ast_ari_get_playback_cb( ...@@ -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( ...@@ -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:
......
...@@ -25,6 +25,12 @@ ...@@ -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 @@ ...@@ -41,6 +47,12 @@
"allowMultiple": false, "allowMultiple": false,
"dataType": "string" "dataType": "string"
} }
],
"errorResponses": [
{
"code": 404,
"reason": "The playback cannot be found"
}
] ]
} }
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment