Using a single error.code is clearer.