Only use 404 errors in production