Adding HttpResponseException to WebApi Shim.

Fixes #1284
Your test actually demonstrates the problem with using max-value perfectly :laughing: