Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): accept 2xx responses without error
Many of our API endpoints that create objects now return 201 Created instead of 200 OK. The API implementation here was previously only accepting http.StatusOK as valid. With this change, the API handler now accepts 2xx status codes. Bug: #173
- Loading branch information
1 parent
7a8c415
commit f0cb847
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters