Add CLI error templates and only send HTTP status headers for non-CLI requests (issue #1743)
Update the upgrade instructions for error templates