When the query is unsuccessful for some reason.

I know it gets logged by queryDB if that kind of an error happens, but it is a way of sending an empty response which will tell the user that some error occurred.