Change JSON parsing error to be more helpful
Add explicit status code in retry checking

An error is not necessarily returned on non-200 statuses.