[MINOR] move error codes to common/errors.h

It's useful to be able to share error codes between C files,
so move the codes currently only used in protocols to a generic
file.
diff --git a/src/haproxy.c b/src/haproxy.c
index 1108ea9..5152a3c 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -64,6 +64,7 @@
 #include <common/compat.h>
 #include <common/config.h>
 #include <common/defaults.h>
+#include <common/errors.h>
 #include <common/memory.h>
 #include <common/mini-clist.h>
 #include <common/regex.h>
diff --git a/src/proto_uxst.c b/src/proto_uxst.c
index 24c435f..307d7ef 100644
--- a/src/proto_uxst.c
+++ b/src/proto_uxst.c
@@ -28,6 +28,7 @@
 #include <common/compat.h>
 #include <common/config.h>
 #include <common/debug.h>
+#include <common/errors.h>
 #include <common/memory.h>
 #include <common/mini-clist.h>
 #include <common/standard.h>
diff --git a/src/proxy.c b/src/proxy.c
index f2967de..435a1e2 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -19,6 +19,7 @@
 #include <common/defaults.h>
 #include <common/compat.h>
 #include <common/config.h>
+#include <common/errors.h>
 #include <common/memory.h>
 #include <common/time.h>