Return proper mimetype and response status when an issue is
opened/closed. #241.