Changed out the check for which error codes to hand off to be  more readable.