Document the 400 error response for originate
authorDavid M. Lee <dlee@digium.com>
Wed, 10 Jul 2013 17:13:21 +0000 (17:13 +0000)
committerDavid M. Lee <dlee@digium.com>
Wed, 10 Jul 2013 17:13:21 +0000 (17:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_stasis_http_channels.c
rest-api/api-docs/channels.json

index 5c150df..050ef00 100644 (file)
@@ -142,6 +142,7 @@ static void stasis_http_originate_cb(
 
        switch (code) {
        case 500: /* Internal server error */
+       case 400: /* Invalid parameters for originating a channel. */
                is_valid = 1;
                break;
        default:
index c442d8e..07c9750 100644 (file)
                                                        "dataType": "int",
                                                        "defaultValue": 30
                                                }
+                                       ],
+                                       "errorResponses": [
+                                               {
+                                                       "code": 400,
+                                                       "reason": "Invalid parameters for originating a channel."
+                                               }
                                        ]
                                }
                        ]