Replace BadRequestHttpException with HttpException

Fixes #4