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

Popular Posts:

Wednesday, March 25, 2026
2:00 - 3:00 pm ET

Join this free, one-hour webinar with our experts to see how to use AI as your ultimate marketing assistant to boost productivity while staying true to your brand.