Also accept 201 as succcess

Hello @ciaranj,
I have added micro fix to support response with HTTP code 201 as my client returns 201 as confirmation of successful authorization.

Thanks in advantage for merging this pull request to upstream.

Best regards,
Ernest.