Checking http status code of crucible and returning -1 for status != 20[01]