Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention. Check out this how-to article for more information.
if (res.status === 200)
if (res.status === 200 || res.status === 201)Is there a way to avoid code duplication?
Join the community of 500,000 technology professionals and ask your questions.