Added BadRequestError exception to reports, and handling to return a 400 in the case of that error