invalid params result in 400 Bad Request