Allow RestException subclasses to set error code and http code, not just the factory in the RestException package