check if errorcode is right number