Raise HTTPError when not returning a model

In cases where something else than a model is returned from a request
method, a HTTP 500 error is now thrown and logged properly. Before this
was simply ignored and resulted in an empty response with code 200.

Thanks @tobigue

Fixes #5