[asterisk-commits] qwell: branch qwell/ari-originate2 r393127 - /team/qwell/ari-originate2/res/s...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 28 10:29:38 CDT 2013


Author: qwell
Date: Fri Jun 28 10:29:37 2013
New Revision: 393127

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393127
Log:
s/500/400/

Modified:
    team/qwell/ari-originate2/res/stasis_http/resource_channels.c

Modified: team/qwell/ari-originate2/res/stasis_http/resource_channels.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/ari-originate2/res/stasis_http/resource_channels.c?view=diff&rev=393127&r1=393126&r2=393127
==============================================================================
--- team/qwell/ari-originate2/res/stasis_http/resource_channels.c (original)
+++ team/qwell/ari-originate2/res/stasis_http/resource_channels.c Fri Jun 28 10:29:37 2013
@@ -330,7 +330,7 @@
 	char *stuff;
 
 	if (ast_strlen_zero(args->endpoint)) {
-		stasis_http_response_error(response, 500, "Internal server error",
+		stasis_http_response_error(response, 400, "Bad Request",
 			"Endpoint must be specified");
 		return;
 	}
@@ -342,7 +342,7 @@
 	}
 
 	if (ast_strlen_zero(dialtech) || ast_strlen_zero(dialdevice)) {
-		stasis_http_response_error(response, 500, "Internal server error",
+		stasis_http_response_error(response, 400, "Bad Request",
 			"Invalid endpoint specified");
 		return;
 	}
@@ -389,7 +389,7 @@
 			return;
 		}
 	} else {
-		stasis_http_response_error(response, 500, "Internal server error",
+		stasis_http_response_error(response, 400, "Bad Request",
 			"Application or extension must be specified");
 		return;
 	}




More information about the asterisk-commits mailing list