Creates Status object from system error.