'res' property is used instead of 'response.data'