Fixed HTTP response code 414

Issue #3 provided code however nobody ever officially put in a pull request for that code. This pull request contains the code provided by @hansvd and thus closes #3.