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;
}
Solved! Go to Solution.
The HTTP Status Code 201 (Created) means that a request was successful and a new resource was created.
Hello user8038334,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
201 is a success response code:
201: Created
Your request (usually a PUT or POST) to create a new resource was successful. The response body contains the new resource or a link to the new resource.
You can view a list of API response codes here:
Response Codes
https://v3.developer.constantcontact.com/api_guide/glossary_responses.html
Please have a look and let us know if you have any other questions!
The HTTP Status Code 201 (Created) means that a request was successful and a new resource was created.
Hello user8038334,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
201 is a success response code:
201: Created
Your request (usually a PUT or POST) to create a new resource was successful. The response body contains the new resource or a link to the new resource.
You can view a list of API response codes here:
Response Codes
https://v3.developer.constantcontact.com/api_guide/glossary_responses.html
Please have a look and let us know if you have any other questions!
Announcements
Join our list to be notified of new features and updates to our V3 API.
Sign Up