Can of worms...
Short answer. You can't. Long answer. You can't and the way that was making you cringe is right. The browsers don't tend to pass back the http status code back to the Flash Player, so you have to make do with passing back a 200 with the code embedded inside. Gk.