Fixed to check Http Status Code