check specific kind of error