Error document middleware for Connect server.