Changed the method to `isError` which returns true if `statusCode >=400`