diff --git a/res/res_ari_bridges.c b/res/res_ari_bridges.c index d3b3a649d20469717b1c973d74758bf8a0cb4280..c0b8b0d5831dd1435e99a7586387c1a38542d4b3 100644 --- a/res/res_ari_bridges.c +++ b/res/res_ari_bridges.c @@ -742,6 +742,9 @@ static void ast_ari_record_bridge_cb( break; case 500: /* Internal Server Error */ case 501: /* Not Implemented */ + case 400: /* Recording name invalid */ + case 404: /* Bridge not found */ + case 409: /* Bridge not in Stasis application; Recording already in progress */ is_valid = 1; break; default: diff --git a/rest-api/api-docs/bridges.json b/rest-api/api-docs/bridges.json index 640cf4c5d531593740311bd5ef615a04ca2ac1e6..48e5696c5430f6a2241d3eb3f1d87bea98dfe078 100644 --- a/rest-api/api-docs/bridges.json +++ b/rest-api/api-docs/bridges.json @@ -453,6 +453,20 @@ ] } } + ], + "errorResponses": [ + { + "code": 400, + "reason": "Recording name invalid" + }, + { + "code": 404, + "reason": "Bridge not found" + }, + { + "code": 409, + "reason": "Bridge not in Stasis application; Recording already in progress" + } ] } ]