More idiomatic error code expression