Change expected HTTP status codes to 201

The HTTP 201 status code means that a resource was created. The tests which
attempt to create a resource should expect an HTTP 201, not an HTTP 200.
Merge pull request #938 from Ichimonji10/fix-test

Change expected HTTP status codes to 201