[#84538682] extracted pivotal request validator

- smarter error handling. Does not just throw an error if it sees
  "error" in the JSON string