Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include 201 CREATED in HTTP success response codes #237

Merged
merged 2 commits into from
Jun 15, 2018

Conversation

sixolet
Copy link
Contributor

@sixolet sixolet commented Jun 15, 2018

Previously, we only accepted 200 OK and 204 NO_CONTENT. Some APIs we'd like to use this library with return 201 CREATED when creating a resource, so that should also count as success (and behave like 200 OK).

Previously, we only accepted 200 OK and 204 NO_CONTENT. Some APIs we'd like to use this library with return 201 CREATED when creating a resource, so that should also count as success (and behave like 200 OK).
@vilasj
Copy link
Contributor

vilasj commented Jun 15, 2018

@vilasj vilasj merged commit 48f6034 into google:master Jun 15, 2018
sixolet added a commit to sixolet/apitools that referenced this pull request Aug 7, 2018
* Include 201 CREATED in HTTP success response codes

Previously, we only accepted 200 OK and 204 NO_CONTENT. Some APIs we'd like to use this library with return 201 CREATED when creating a resource, so that should also count as success (and behave like 200 OK).
sixolet added a commit to sixolet/apitools that referenced this pull request Aug 7, 2018
* Include 201 CREATED in HTTP success response codes

Previously, we only accepted 200 OK and 204 NO_CONTENT. Some APIs we'd like to use this library with return 201 CREATED when creating a resource, so that should also count as success (and behave like 200 OK).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants