Unit Testing HTTP Client error response

+1 for Bypass - it makes this pretty straightforward. There is a good example in the docs.