Closed yss14 closed 7 years ago
Yep. You're right. PR are welcome. :+1:
Should it be configable via options or hard coded?
@yss14 I guess we can easily hard-code for now..
A simple [200, 201, 203, 204].indexOf(statusCode) === -1
here would be enough.
Edit: I saw the PR#12. It's fine. Let me see if we can bump also some dependencies and increase test coverage. This could be added to the tests.. let's try to improve the coverage and update doc.
Closed with #12
Why does node-webhooks only fire the
success
event, if the response has a http status code of200
? In my opinion at least201
till204
are also valid and common response codes.