Refactor __str__ method of BadRequestError