like pmac suggested, you want to use the error constants here.