Join our AMA on Thursday, December 11! Get your marketing questions answered live. šŸ’¬
Can’t make it? Drop your question at the link below! ā¬‡ļø

Meaning of Status Code 201 in API Client.cs

What is the meaning of Status Code 201?

Ā 

var status_ = (int)response_.StatusCode;
if (status_ == 201)
{
var objectResponse_ = await ReadObjectResponseAsync<ContactList>(response_, headers_).ConfigureAwait(false);
if (objectResponse_.Object == null)
{
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
}
return objectResponse_.Object;
}

2 replies

Join Our New Small Business Marketplace!

We're highlighting small businesses from our community. Add your business to the Marketplace to get discovered by new customers and support other entrepreneurs.