scotttrinh/shootproof-js-sdk

Check "stat" property for errors and failures

Open

#2 opened on Feb 22, 2016

 (0 comments) (0 reactions) (0 assignees)JavaScript (0 forks)github user discovery
help wanted

Repository metrics

Stars
 (1 star)
PR merge metrics
 (No merged PRs in 30d)

Description

Looks like the server returns a 200 even on errors, but passes back an error object. Let's add response parsing to check for a successful status and reject on errors. Need some feedback about the possible responses, or at least the possible stat values.

Contributor guide