If an intermediate Diameter Agent/Relay node found any error then set error in the Result-Code AVP and add an extra AVP known as Error-Reporting-Host AVP. There is one more condition adhere, if Diameter Agent/Relay node receives answer from another node and answer message carrying Result-Code AVP set to other than 2001 then Diameter Agent/Relay nodes log the error locally and does not modify the Result-Code of received message.