pushed fix
added status code check
Merge branch 'master' into collections-in-user