return 400 Bad Request if invalid params supplied (bug1061738)

return a 400 Bad Request if there are invalid arguments params supplied

Change-Id: I82da8a6db4a2847c8407cd0917b2d71ac9f9ba7a
Merge "return 400 Bad Request if invalid params supplied (bug1061738)"