Use proper HTTP code on empty response

Render correct responses on 204 and 416

Fixes #2