I have using express and trying to create an API for testing I used nock so i make a get request whose response I don't want to change after that i want to do put request and want to change the response of that part but when i tried to do that i getting error for the first get request that i don't want to change. I am getting the error Error: Nock: No match for request
nock(baseURI + '/' + imp.http.relativeURI , { 'encodedQueryParams': true })
.put('/' +imp.file.fileName)
.reply(422,
'<response><errormessage>some error message</errormessage></response>',
[ 'Content-Type', 'application/xml; charset=UTF-8' ])