-
Notifications
You must be signed in to change notification settings - Fork 31
Allow a wordpress api request to specify certain status codes it want... #12
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
Conversation
If you approve this modification, I'll update the readme if you like, as part of this.
...s to allow/handle in response.
Codecov Report
@@ Coverage Diff @@ ## master #12 +/- ## ========================================== + Coverage 85.96% 85.97% +0.01% ========================================== Files 5 5 Lines 755 756 +1 ========================================== + Hits 649 650 +1 Misses 106 106
Continue to review full report at Codecov.
|
Hey there, thanks for the PR, especially since it includes tests!
...s to allow/handle in response.
There are many cases where I might decide eg a 400 response is helpful - I have an import script for which it's more convenient to try and post something, and handle a 400 - telling me the item is already there, from a previous run of the script... rather than querying if it's there then posting only if it's not (which may be on average a slower process especially on the first run.)