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:
parent
b193b580b0
commit
f6211b6b70
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue