Add HTTPLengthRequired Exception.

One unit test, one exception class, one small refactoring.