Add error handling layer to request construction