libpcp_web: simplify error handling using a common helper
libpcp_web: simplify error handling using a common helper

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp