Apply the network delay to failed requests

Currently, when a global error is set, the global response delay is bypassed.

This commit ensures that when a global error is set, the network thread will wait for the global response delay before responding with the error.