Add some additional logging for 404s and 500s