Sujit Kumar Posted January 23, 2020 Share Posted January 23, 2020 How can I get the response "code" (e.g. 200, 500, 404, etc.) when using REST APIs in Spotfire I know how to get the "response" (webRequest.getResponse()), but I am unable to figure out how to get the corresponding "response code". It's not available here: https://community.spotfire.com/questions/consume-rest-apis-spotfire Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted January 23, 2020 Share Posted January 23, 2020 There is an StatusCode property available this might help,https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebresponse.statuscodeview=netframework-4.8 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now