Refactored statsd page error handling