handle requesterror in before blocks for sse properly