Commit 474f1ec9 by AdriVanHoudt

add 202 as non error status for callbacks

parent 88c7dbc3
......@@ -95,7 +95,7 @@ FullContact.prototype.request = function req(packet, args) {
// it will have a "message" property when it's a failed request so we can
// leverage that to return a nice error.
//
if (body.status !== 200) {
if (body.status !== 200 || body.status !== 202) {
err = new Error(body.message);
err.status = body.status;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment