Proper query string submission. Now catching 502 errors from within the API