Added 201 Created HTTP status code for onSuccess
Merge pull request #2 from jamesduncombe/master

Added 201 Created HTTP status code for onSuccess