| Acceptance Criteria: |
- When catching API error, format the response without HTML
Example a good example {code:java} $ curl -G http://localhost:8080/pdb/query/v4 -H 'Content-Type:application/json' --data-urlencode 'query=[ "from", "nodes", [ "extract", [ "certname", "=", "certname", "inactivee" ] ] ]' Can't extract unknown 'nodes' fields '=' and 'inactivee'. Acceptable fields are 'latest_report_corrective_change', 'deactivated', 'expired', 'report_environment', 'certname', 'facts_timestamp', 'facts_environment', 'cached_catalog_status', 'latest_report_status', 'latest_report_hash', 'catalog_timestamp', 'latest_report_noop_pending', 'report_timestamp', 'latest_report_noop', 'catalog_environment', and 'latest_report_job_id' {code} |