Renamed 404 and 500 functions to remove duplicate method name