Added check for the rest of 2xx HTTP statues.