Is it usual practice to test for errors like this? I believe in fact codes greater than this are errors, while ones less are warnings...but I also thought there was a function to test whether a code is an error? If not I think there should be.