Simplify raising APINotOkError