What is the difference between 200 and 201?

The 200 status code is by far the most common returned. It means, simply, that the request was received and understood and is being processed. A 201 status code indicates that a request was successful and as a result, a resource has been created (for example a new page).

For More Information Please Refer: https://aloneonahill.com/blog/http-status-codes