[js_ingest] ErrorResponse exception improvement