Format code
Handle 404 error