Status code in web service does not match in the code after updating to 5.7.1

when i execute the api in web service it works fine and status code is 200 in first pic

but when i execute it in the code status code changes to 404 in pic 2

////////////////////////////////////////// second pic

res in web service.PNG

res in code.PNG

can you also share code you executing? since 404 means service was not found - i would check the call