Updated the gitignore

Added some a file i use for dev
Changed the error404 method

Made it handle more typed of errors also made it public.