Return nil when response code is 4xx or 5xx.