It's going to be something like this, then...
index=foo status=50* OR status=200
| fields status whateverfieldsareuniqueeventid
| eval Result=if(status=200,"Success","Error")
| stats values(Result) by whateverfieldsareuniqueeventid
| where mvcount(Result)=1 AND Result="Error"
... View more