translate uncatched InvalidArgumentException into HTTP 400 Bad Request