Implementing handling 404-errors. Also implementing status code changed.