Simplify returning error status codes