Then we should fix it everywhere. It makes sense that it returns the correct code, since the 404 gets set last. But setting a 204 and overwriting it right away with a 404 is unnecessary.