catching exception inside of body-params and returning a 400 error