Request is something like GET /webservices/internal/filevalidation/path/gallery:myFolder:mySubFolder
I'm supposed to pass folder path in URL not as a query parameter. Here, the service returns empty if the validation is success. One more issue what I'm facing is, when the response is empty (200 success) the promise is going to deffered state as it failed to parse an empty JSON response.