move ApiError from util into restkit itself