Index: trunk/pstamp/src/pstamp.h
===================================================================
--- trunk/pstamp/src/pstamp.h	(revision 24966)
+++ trunk/pstamp/src/pstamp.h	(revision 25075)
@@ -8,7 +8,4 @@
 #include "pslib.h"
 #include "psmodules.h"
-// #include "psphot.h"
-// #include "psastro.h"
-// #include "ppStats.h"
 #include "pstampErrorCodes.h"
 
@@ -31,4 +28,21 @@
 } pspMode;
 
+// error codes returned to users in results flie
+typedef enum {
+        PSTAMP_SUCCESS          = 0,
+	PSTAMP_SYSTEM_ERROR     = 10,
+	PSTAMP_NOT_IMPLEMENTED  = 11,
+	PSTAMP_UNKNOWN_ERROR    = 12,
+	PSTAMP_DUP_REQUEST      = 20,
+	PSTAMP_INVALID_REQUEST  = 21,
+	PSTAMP_UNKNOWN_PRODUCT  = 22,
+	PSTAMP_NO_IMAGE_MATCH   = 23,
+	PSTAMP_NOT_DESTREAKED   = 24,
+	PSTAMP_NOT_AVAILABLE    = 25,
+	PSTAMP_GONE             = 26,
+	PSTAMP_NO_JOBS_QUEUED   = 27
+} pstampJobErrors;
+
+
 #define PSTAMP_SELECT_IMAGE  1
 #define PSTAMP_SELECT_MASK   2
@@ -44,3 +58,5 @@
 #define STAMP_RESULTS_VERSION "1"
 
+
+
 #endif
