From 8de298e17b55c12e48e5d029ee7cbd2324a434db Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 29 Oct 2013 11:15:16 +0000 Subject: [PATCH] res_ari_playback: Add missing 404 error response for GET and DELETE. (closes issue ASTERISK-22722) Reported by: Richard Mudgett git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402139 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_ari_playback.c | 2 ++ rest-api/api-docs/playback.json | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/res/res_ari_playback.c b/res/res_ari_playback.c index e30800d083..06538f5a82 100644 --- a/res/res_ari_playback.c +++ b/res/res_ari_playback.c @@ -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: diff --git a/rest-api/api-docs/playback.json b/rest-api/api-docs/playback.json index a195186f2e..880aaa0469 100644 --- a/rest-api/api-docs/playback.json +++ b/rest-api/api-docs/playback.json @@ -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" + } ] } ] -- 2.47.2