Add 404 and 500 and auto run if this file is invoked