APIKIT-217: http.status stored as Integer causes ClassCastException
(cherry picked from commit a2cf13a7842a8c446e10a1f3e7b3acbad563f50d)