simple error catching to stop every 404 being a 500