Ensure bridge record error responses validate

This adds the list of expected errors to the /bridges/{bridgeId}/record
ARI documentation so that outbound 4xx errors validate properly.
Previously, this would result in a response validation failure.

(closes issue ASTERISK-22627)
Reported by: Joshua Colp


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@401018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kinsey Moore
2013-10-15 20:02:08 +00:00
parent 22b17f607e
commit 8dbc1d6f30
2 changed files with 17 additions and 0 deletions

View File

@@ -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"
}
]
}
]