I ran the same post through another library so that I was able to see the response more clearly and this is what I received.
412<?xml version="1.0" encoding="UTF-8"?> <errors> <error>this link already exists...</error> </errors>
I am guess that this is the response when trying to add a collect that already exists but I think this is the wrong HTTP status code to use. My understanding the the 412 error is that the server is telling the client that the request contains a header that it is unable or unwilling to comply with.
Specifically when using the Dot.Net HttpWebRequest object it is treated as exception.
I will just code around it for now but perhaps a 200 response is just fine. I mean if the collect I am trying to add already exists then a 200 response confirms for me that the collect well…that it exists :)
|27 seconds ago|