added InvalidRequestError type of exception