Set Result-Code as an optional AVP in reply to request containing errors
Set Result-Code as an optional AVP in reply to request containing errors

Previously assumed it had arity 1, which is not necessarily
the case. Whether or not we should do this is probably debatable.
There should at least be a way for the user to roll their own.

vic/otp,johanclaesson/otp,bjorng/otp,rlipscombe/otp,emacsmirror/erlang,rlipscombe/otp,sdebnath/otp,matwey/otp,jj1bdx/otp,schlagert/otp,mikpe/otp,c-rack/otp,schlagert/otp,lhslll/otp,schlagert/otp,yangchengjian/otp,ahmedshafeeq/otp,neeraj9/otp,fenollp/otp,marquisthunder/otp,lantti/otp,paulcager/otp,GinjaNinja32/otp,lrascao/otp,RGafiyatullin/otp,yangchengjian/otp,sammoth-wazoku/otp,johanclaesson/otp,RJ/otp,lucafavatella/otp,riverrun/otp,lhslll/otp,release-project/otp,jamesruan/otp,mikpe/otp,klarna/otp,erlang/otp,enikki/otp,beni55/otp,Teino1978-Corp/erlang-otp,goertzenator/otp,vinoski/otp,emacsmirror/erlang,g-andrade/otp,cobusc/otp,ferd/otp,RJ/otp,dgud/otp,palas/otp,RichMorin/otp,ahmedshafeeq/otp,schlagert/otp,hairyhum/otp,weisslj/otp,lrascao/otp,rlipscombe/otp,vic/otp,dumbbell/otp,cnbin/otp,entropiae/otp,lucafavatella/otp,massemanet/otp,jinshana/otp,paulcager/otp,GinjaNinja32/otp,jemsbhai/otp,lrascao/otp,getong/otp,lrascao/otp,bsmr-erlang/otp,hairyhum/otp,gjaldon/otp,ader1990/otp,palas/otp,bjorng/otp,massemanet/otp,emacsmirror/erlang,rlipscombe/otp,bugs-erlang-org/otp,aboroska/otp,lucafavatella/otp,dgud/otp,vinoski/otp,cnbin/otp,ferd/otp,psyeugenic/otp,c-rack/otp,fenollp/otp,hairyhum/otp,lantti/otp,ahmedshafeeq/otp,RoadRunnr/otp,paulcager/otp,Teino1978-Corp/erlang-otp,jemsbhai/otp,derek121/otp,tuncer/otp,lemenkov/otp,sdebnath/otp,cnbin/otp,NOMORECOFFEE/otp,lhslll/otp,massemanet/otp,marquisthunder/otp,lemenkov/otp,emacsmirror/erlang,derek121/otp,emacsmirror/erlang,legoscia/otp,cnbin/otp,haguenau/otp,palas/otp,electricimp/otp,aboroska/otp,isvilen/otp,mujiatong/otp,falkevik/otp,potatosalad/otp,electricimp/otp,g-andrade/otp,vladdu/otp,jamesruan/otp,lrascao/otp,klarna/otp,klarna/otp,lrascao/otp,cobusc/otp,Teino1978-Corp/erlang-otp,jinshana/otp,c-rack/otp,psyeugenic/otp,jj1bdx/otp,RGafiyatullin/otp,sdebnath/otp,RJ/otp,yangchengjian/otp,weisslj/otp,lantti/otp,VincentHHL/otp,platinumthinker/otp,RoadRunnr/otp,cobusc/otp,mujiatong/otp,gjaldon/otp,ahmedshafeeq/otp,stolen/otp,bugs-erlang-org/otp,jamesruan/otp,potatosalad/otp,getong/otp,sdebnath/otp,g-andrade/otp,gjaldon/otp,getong/otp,platinumthinker/otp,msantos/otp,ahmedshafeeq/otp,yangchengjian/otp,platinumthinker/otp,paladim/otp,emacsmirror/erlang,basho/otp,mikpe/otp,lianghaivv/otp,release-project/otp,lantti/otp,matwey/otp,sdebnath/otp,stolen/otp,hairyhum/otp,RJ/otp,goertzenator/otp,lucafavatella/otp,haguenau/otp,sitexa/otp,RaimoNiskanen/otp,release-project/otp,lianghaivv/otp,lucafavatella/otp,bernardd/otp,erlang/otp,psyeugenic/otp,mujiatong/otp,emile/otp,weisslj/otp,aboroska/otp,matwey/otp,uabboli/otp,emile/otp,fenollp/otp,enikki/otp,mikpe/otp,GinjaNinja32/otp,marquisthunder/otp,bjorng/otp,legoscia/otp,RichMorin/otp,paladim/otp,theom/otp,isvilen/otp,getong/otp,emacsmirror/erlang,benoitc/otp-1,lucafavatella/otp,vinoski/otp,entropiae/otp,bsmr-erlang/otp,kvakvs/otp,schlagert/otp,sammoth-wazoku/otp,jj1bdx/otp,massemanet/otp,electricimp/otp,VincentHHL/otp,uabboli/otp,emile/otp,kvakvs/otp,ader1990/otp,RaimoNiskanen/otp,getong/otp,jj1bdx/otp,neeraj9/otp,GinjaNinja32/otp,emile/otp,NOMORECOFFEE/otp,massemanet/otp,kvakvs/otp,beni55/otp,aboroska/otp,beni55/otp,lightcyphers/otp,ferd/otp,mikpe/otp,krishnakumar4a4/otp,basho/otp,haguenau/otp,ader1990/otp,paulcager/otp,cobusc/otp,emacsmirror/erlang,erlang/otp,bugs-erlang-org/otp,lhslll/otp,RJ/otp,isvilen/otp,bsmr-erlang/otp,neeraj9/otp,c-rack/otp,neeraj9/otp,isvilen/otp,erlang/otp,johanclaesson/otp,fenollp/otp,gjaldon/otp,bjorng/otp,weisslj/otp,vic/otp,bernardd/otp,haguenau/otp,emacsmirror/erlang,uabboli/otp,psyeugenic/otp,getong/otp,weisslj/otp,sitexa/otp,riverrun/otp,legoscia/otp,c-rack/otp,theom/otp,jj1bdx/otp,kvakvs/otp,ader1990/otp,c-rack/otp,rlipscombe/otp,massemanet/otp,sitexa/otp,emile/otp,bsmr-erlang/otp,paulcager/otp,sammoth-wazoku/otp,goertzenator/otp,lianghaivv/otp,enikki/otp,vinoski/otp,jj1bdx/otp,jamesruan/otp,emile/otp,sammoth-wazoku/otp,g-andrade/otp,johanclaesson/otp,RaimoNiskanen/otp,bugs-erlang-org/otp,release-project/otp,lianghaivv/otp,matwey/otp,bugs-erlang-org/otp,awetzel/otp,potatosalad/otp,riverrun/otp,NOMORECOFFEE/otp,fenollp/otp,riverrun/otp,release-project/otp,schlagert/otp,kvakvs/otp,marquisthunder/otp,cnbin/otp,stolen/otp,lrascao/otp,lucafavatella/otp,yangchengjian/otp,vladdu/otp,lightcyphers/otp,jinshana/otp,ader1990/otp,sammoth-wazoku/otp,legoscia/otp,bsmr-erlang/otp,ahmedshafeeq/otp,dumbbell/otp,lrascao/otp,bjorng/otp,theom/otp,stolen/otp,mujiatong/otp,hairyhum/otp,platinumthinker/otp,lhslll/otp,bjorng/otp,aboroska/otp,electricimp/otp,krishnakumar4a4/otp,dumbbell/otp,getong/otp,erlang/otp,vic/otp,psyeugenic/otp,lemenkov/otp,kvakvs/otp,dumbbell/otp,legoscia/otp,RGafiyatullin/otp,kvakvs/otp,lightcyphers/otp,c-rack/otp,weisslj/otp,stolen/otp,erlang/otp,vladdu/otp,goertzenator/otp,enikki/otp,tuncer/otp,sitexa/otp,rlipscombe/otp,bernardd/otp,lightcyphers/otp,bjorng/otp,ahmedshafeeq/otp,cobusc/otp,uabboli/otp,rlipscombe/otp,johanclaesson/otp,saleyn/otp,sdebnath/otp,g-andrade/otp,dgud/otp,bsmr-erlang/otp,riverrun/otp,bsmr-erlang/otp,RichMorin/otp,potatosalad/otp,bernardd/otp,vladdu/otp,jinshana/otp,mikpe/otp,lemenkov/otp,RoadRunnr/otp,neeraj9/otp,ferd/otp,Teino1978-Corp/otp,lantti/otp,RGafiyatullin/otp,mikpe/otp,mikpe/otp,saleyn/otp,goertzenator/otp,paulcager/otp,jj1bdx/otp,VincentHHL/otp,lhslll/otp,derek121/otp,bsmr-erlang/otp,jamesruan/otp,enikki/otp,krishnakumar4a4/otp,lantti/otp,derek121/otp,krishnakumar4a4/otp,bsmr-erlang/otp,dgud/otp,RichMorin/otp,bugs-erlang-org/otp,aboroska/otp,riverrun/otp,vinoski/otp,basho/otp,uabboli/otp,lucafavatella/otp,psyeugenic/otp,weisslj/otp,g-andrade/otp,RaimoNiskanen/otp,falkevik/otp,dumbbell/otp,haguenau/otp,release-project/otp,ferd/otp,emile/otp,cnbin/otp,haguenau/otp,Teino1978-Corp/erlang-otp,basho/otp,vic/otp,bjorng/otp,rlipscombe/otp,emile/otp,VincentHHL/otp,mujiatong/otp,neeraj9/otp,NOMORECOFFEE/otp,ahmedshafeeq/otp,lemenkov/otp,theom/otp,Teino1978-Corp/otp,emacsmirror/erlang,potatosalad/otp,neeraj9/otp,ader1990/otp,lightcyphers/otp,klarna/otp,jj1bdx/otp,lhslll/otp,VincentHHL/otp,johanclaesson/otp,derek121/otp,haguenau/otp,gjaldon/otp,sitexa/otp,matwey/otp,RaimoNiskanen/otp,isvilen/otp,lhslll/otp,dumbbell/otp,vinoski/otp,paulcager/otp,matwey/otp,jamesruan/otp,msantos/otp,marquisthunder/otp,bernardd/otp,jamesruan/otp,psyeugenic/otp,lantti/otp,beni55/otp,erlang/otp,jamesruan/otp,isvilen/otp,RaimoNiskanen/otp,klarna/otp,massemanet/otp,msantos/otp,tuncer/otp,RoadRunnr/otp,neeraj9/otp,RoadRunnr/otp,isvilen/otp,ahmedshafeeq/otp,psyeugenic/otp,hairyhum/otp,isvilen/otp,release-project/otp,benoitc/otp-1,Teino1978-Corp/otp,vinoski/otp,mujiatong/otp,tuncer/otp,krishnakumar4a4/otp,RGafiyatullin/otp,paladim/otp,basho/otp,mujiatong/otp,bernardd/otp,vic/otp,riverrun/otp,sdebnath/otp,potatosalad/otp,isvilen/otp,sammoth-wazoku/otp,riverrun/otp,entropiae/otp,potatosalad/otp,RJ/otp,awetzel/otp,uabboli/otp,vladdu/otp,paladim/otp,falkevik/otp,Teino1978-Corp/erlang-otp,RaimoNiskanen/otp,schlagert/otp,paulcager/otp,beni55/otp,saleyn/otp,jemsbhai/otp,bugs-erlang-org/otp,haguenau/otp,mikpe/otp,vladdu/otp,awetzel/otp,g-andrade/otp,weisslj/otp,potatosalad/otp,GinjaNinja32/otp,entropiae/otp,bjorng/otp,msantos/otp,matwey/otp,sdebnath/otp,dumbbell/otp,RichMorin/otp,lianghaivv/otp,krishnakumar4a4/otp,GinjaNinja32/otp,beni55/otp,dgud/otp,g-andrade/otp,falkevik/otp,Teino1978-Corp/erlang-otp,release-project/otp,marquisthunder/otp,saleyn/otp,RichMorin/otp,Teino1978-Corp/otp,saleyn/otp,bugs-erlang-org/otp,gjaldon/otp,vinoski/otp,lemenkov/otp,basho/otp,aboroska/otp,gjaldon/otp,jj1bdx/otp,rlipscombe/otp,hairyhum/otp,enikki/otp,benoitc/otp-1,saleyn/otp,palas/otp,massemanet/otp,fenollp/otp,lianghaivv/otp,tuncer/otp,derek121/otp,jemsbhai/otp,dumbbell/otp,GinjaNinja32/otp,marquisthunder/otp,msantos/otp,yangchengjian/otp,paladim/otp,bernardd/otp,benoitc/otp-1,yangchengjian/otp,potatosalad/otp,vladdu/otp,sammoth-wazoku/otp,awetzel/otp,erlang/otp,emile/otp,aboroska/otp,benoitc/otp-1,lrascao/otp,dgud/otp,entropiae/otp,awetzel/otp,uabboli/otp,johanclaesson/otp,massemanet/otp,platinumthinker/otp,cnbin/otp,paladim/otp,mujiatong/otp,msantos/otp,isvilen/otp,Teino1978-Corp/erlang-otp,ferd/otp,jinshana/otp,RichMorin/otp,klarna/otp,sammoth-wazoku/otp,lianghaivv/otp,matwey/otp,beni55/otp,stolen/otp,yangchengjian/otp,falkevik/otp,tuncer/otp,legoscia/otp,derek121/otp,electricimp/otp,palas/otp,goertzenator/otp,benoitc/otp-1,lightcyphers/otp,RoadRunnr/otp,weisslj/otp,legoscia/otp,vinoski/otp,uabboli/otp,dgud/otp,NOMORECOFFEE/otp,lightcyphers/otp,cobusc/otp,paladim/otp,bjorng/otp,lightcyphers/otp,schlagert/otp,electricimp/otp,vinoski/otp,VincentHHL/otp,mikpe/otp,RichMorin/otp,electricimp/otp,VincentHHL/otp,aboroska/otp,palas/otp,bernardd/otp,NOMORECOFFEE/otp,RGafiyatullin/otp,entropiae/otp,benoitc/otp-1,NOMORECOFFEE/otp,krishnakumar4a4/otp,fenollp/otp,basho/otp,NOMORECOFFEE/otp,sitexa/otp,lantti/otp,kvakvs/otp,ferd/otp,g-andrade/otp,VincentHHL/otp,msantos/otp,johanclaesson/otp,theom/otp,vic/otp,g-andrade/otp,theom/otp,vic/otp,platinumthinker/otp,basho/otp,entropiae/otp,electricimp/otp,sitexa/otp,falkevik/otp,saleyn/otp,saleyn/otp,c-rack/otp,RJ/otp,Teino1978-Corp/erlang-otp,theom/otp,vladdu/otp,cnbin/otp,RaimoNiskanen/otp,ferd/otp,RoadRunnr/otp,platinumthinker/otp,lianghaivv/otp,palas/otp,platinumthinker/otp,kvakvs/otp,RoadRunnr/otp,dumbbell/otp,gjaldon/otp,RGafiyatullin/otp,jinshana/otp,theom/otp,potatosalad/otp,entropiae/otp,vladdu/otp,palas/otp,basho/otp,erlang/otp,matwey/otp,enikki/otp,cobusc/otp,falkevik/otp,klarna/otp,derek121/otp,falkevik/otp,getong/otp,goertzenator/otp,awetzel/otp,dgud/otp,fenollp/otp,ader1990/otp,getong/otp,electricimp/otp,hairyhum/otp,msantos/otp,jemsbhai/otp,jemsbhai/otp,falkevik/otp,marquisthunder/otp,release-project/otp,fenollp/otp,klarna/otp,bernardd/otp,awetzel/otp,getong/otp,uabboli/otp,Teino1978-Corp/otp,stolen/otp,dgud/otp,Teino1978-Corp/otp,paladim/otp,jj1bdx/otp,dgud/otp,stolen/otp,jemsbhai/otp,awetzel/otp,krishnakumar4a4/otp,goertzenator/otp,Teino1978-Corp/otp,beni55/otp,cobusc/otp,GinjaNinja32/otp,RJ/otp,Teino1978-Corp/otp,saleyn/otp,tuncer/otp,jemsbhai/otp,goertzenator/otp,legoscia/otp,tuncer/otp,RGafiyatullin/otp,tuncer/otp,rlipscombe/otp,legoscia/otp,sitexa/otp,lemenkov/otp,ferd/otp,RaimoNiskanen/otp,jinshana/otp,enikki/otp,erlang/otp,ader1990/otp,lemenkov/otp,RoadRunnr/otp,dumbbell/otp,benoitc/otp-1,jinshana/otp