Tried this with logtsash 7.10.2 and 7.12.1:
The following code results in "(TypeError) no implicit conversion of nil into Integer":
mutate { add_field => { "[http][response][status_code]" => "200" } } <== this statement is OK
mutate { convert => { "[http][response][status_code]" => "integer" } } <== this statement fails
but if you rename the field to something else it works:
mutate { add_field => { "[http][response][status_co]" => "200" } }
mutate { convert => { "[http][response][status_co]" => "integer" } }
So, it looks as if logstash gets confused with field named as [http][response][status_code]