wrong status-code check order