Proper HTTP Exception handling

fixes #25