[fix] Corrected reference from `err` to `e`.
[fix] Only parse to JSON when we don't accept `text` or `html`.
[minor] Automatically set the correct name/version.