Add unit test for errors middleware
Add unit test for errors middleware

Signed-off-by: Tw <9badae619f85d6141021d55221ac5bc6f13849e6@gmail.com>

Eagle-X/caddy,Prezto/caddy,pedronasser/caddy,eiszfuchs/caddy,pedronasser/caddy,wmydz1/caddy,yukimochi/caddy,evermax/caddy,mem/caddy,coolaj86/caddy,Zenithar/caddy,evermax/caddy,hackintoshrao/caddy,buddhamagnet/caddy,wmydz1/caddy,youprofit/caddy,lukw00/caddy,joshix/caddy,eiszfuchs/caddy,pschlump/caddy,Prezto/caddy,yukimochi/caddy,guilhermebr/caddy,mem/caddy,liufuqiang/caddy,mem/caddy,dusty/caddy,Zenithar/caddy,wangfakang/caddy,Eagle-X/caddy,captncraig/caddy,captncraig/caddy,pschlump/caddy,wmydz1/caddy,ollie314/caddy,kingland/caddy,eiszfuchs/caddy,Zenithar/caddy,tuxmonteiro/caddy,dusty/caddy,kingland/caddy,devangels/caddy,Karthic-Hackintosh/caddy,txgruppi/caddy,Karthic-Hackintosh/caddy,hackintoshrao/caddy,DenBeke/caddy,tw4452852/caddy,elcore/caddy,DenBeke/caddy,wangfakang/caddy,devangels/caddy,youprofit/caddy,evermax/caddy,kyroskoh/caddy,tobya/caddy,evermax/caddy,liufuqiang/caddy,pedronasser/caddy,hackintoshrao/caddy,androdev4u/caddy,tgulacsi/caddy,mem/caddy,wangfakang/caddy,cez81/caddy,tpng/caddy,Eagle-X/caddy,tgulacsi/caddy,devangels/caddy,Karthic-Hackintosh/caddy,tw4452852/caddy,buddhamagnet/caddy,tobya/caddy,Karthic-Hackintosh/caddy,dusty/caddy,youprofit/caddy,tw4452852/caddy,ollie314/caddy,DenBeke/caddy,ollie314/caddy,tgulacsi/caddy,txgruppi/caddy,Prezto/caddy,tuxmonteiro/caddy,wmydz1/caddy,Alienero/caddy,pyed/caddy,lukw00/caddy,tuxmonteiro/caddy,tpng/caddy,elcore/caddy,Zenithar/caddy,tgulacsi/caddy,kyroskoh/caddy,captncraig/caddy,kyroskoh/caddy,guilhermebr/caddy,hackintoshrao/caddy,pyed/caddy,wangfakang/caddy,cez81/caddy,bransorem/caddy,Eagle-X/caddy,guilhermebr/caddy,kingland/caddy,tpng/caddy,buddhamagnet/caddy,Alienero/caddy,coolaj86/caddy,joshix/caddy,liufuqiang/caddy,lukw00/caddy,kyroskoh/caddy,dusty/caddy,Alienero/caddy,pyed/caddy,buddhamagnet/caddy,DenBeke/caddy,androdev4u/caddy,bransorem/caddy,cez81/caddy,tuxmonteiro/caddy,tobya/caddy,pschlump/caddy,eiszfuchs/caddy,pedronasser/caddy,lukw00/caddy,tw4452852/caddy,youprofit/caddy,txgruppi/caddy,androdev4u/caddy,tobya/caddy,bransorem/caddy,guilhermebr/caddy,txgruppi/caddy,elcore/caddy,liufuqiang/caddy,Prezto/caddy,pyed/caddy,joshix/caddy,pschlump/caddy,tpng/caddy,ollie314/caddy,kingland/caddy,yukimochi/caddy