handle low-level errors that are not from app and are not in json format
fix formatting
Merge remote-tracking branch 'github/JIRA-KOA-2576'