I just found that SGW can respond with HTTP 200s without any sort of "error" key in the response JSON and still contain errors. For the query endpoint, I've noticed these differences:
searchResults will be an empty array, regardless of whether or not anything would normally be returned
categoryListModel will be null, instead of the regular chunky JSON object
We can use the latter to check for errors on this particular endpoint.
I just found that SGW can respond with HTTP 200s without any sort of "error" key in the response JSON and still contain errors. For the query endpoint, I've noticed these differences:
We can use the latter to check for errors on this particular endpoint.
This API is truly something else.