Change some 500 errors to 400.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker 2013-06-28 15:36:49 +00:00
parent b193b580b0
commit f6211b6b70
1 changed files with 2 additions and 2 deletions

View File

@ -172,14 +172,14 @@ void stasis_http_play_on_channel(struct ast_variable *headers,
if (args->skipms < 0) {
stasis_http_response_error(
response, 500, "Internal Server Error",
response, 400, "Bad Request",
"skipms cannot be negative");
return;
}
if (args->offsetms < 0) {
stasis_http_response_error(
response, 500, "Internal Server Error",
response, 400, "Bad Request",
"offsetms cannot be negative");
return;
}