Json response - set status code 400 on bad response