change http status for invalid input

Signed-off-by: Ashwin S <ashwin.s@webyog.com>