function WSSReturnCodes()
{
}

// all api's
WSSReturnCodes.SUCCESS                       = 0
WSSReturnCodes.OK                            = 0
WSSReturnCodes.SERVER_ERROR                  = 1
WSSReturnCodes.USER_NOT_CONNECTED            = 2

// add user
WSSReturnCodes.USERID_EXISTS                 = 3

// connect
WSSReturnCodes.CONN_BAD_USERID_PSWD          = 4
WSSReturnCodes.CONN_INACTIVE_USER            = 5
WSSReturnCodes.CONN_CURRENTLY_CONNECTED      = 6
WSSReturnCodes.CONN_ACCESS_DENIED            = 7

// register
WSSReturnCodes.REG_BAD_GROUPID_PSWD          = 8

// start course
WSSReturnCodes.START_STARTS                  = 9
WSSReturnCodes.START_TIME                    = 10
WSSReturnCodes.START_IN_ORDER                = 11
WSSReturnCodes.START_ISOLATION               = 12
WSSReturnCodes.START_CANNOT_BROWSE           = 13
WSSReturnCodes.START_VIRTUAL_ENROLL_FAILED   = 14

// stop course
WSSReturnCodes.COURSE_NOT_STARTED            = 15
WSSReturnCodes.COURSE_VIRTUAL_FINISH_FAILED  = 16

// score
WSSReturnCodes.BAD_SCORE_ID                  = 17

// change password
WSSReturnCodes.PSWD_BAD_PSWD                 = 18


// XMID_REQ_COURSE_DETAIL_PAGE
WSSReturnCodes.PAGE_NOT_DEFINED              = 21

// all api's
WSSReturnCodes.INVALID_ID                    = 22
WSSReturnCodes.INVALID_NAME                  = 23

WSSReturnCodes.USERS_IN_ROOM                 = 26
WSSReturnCodes.COURSE_NOT_FOUND              = 28


WSSReturnCodes.UK_NOT_FOUND                  = 31
WSSReturnCodes.CLASS_NOT_FOUND               = 32

// SignOn
// CONN_USER_NOT_AUTHORIZED is for students who are not
// allowed to sign on to WSS.  This differs from CONN_ACCESS_DENIED
// which is a generic "access to specified function is denied" error.
WSSReturnCodes.CONN_USER_NOT_AUTHORIZED      = 33
WSSReturnCodes.CONN_NAME_ERROR               = 34
WSSReturnCodes.CONN_PWD_ERROR                = 35

// Data Entry error codes
WSSReturnCodes.REQ_FIELD_MISSING             = 36
WSSReturnCodes.INVALID_NUMBER                = 37
WSSReturnCodes.INVALID_DATE                  = 38
WSSReturnCodes.INVALID_VALUE                 = 39
WSSReturnCodes.INVALID_LUT_VALUE             = 40

// Generic
WSSReturnCodes.FEATURE_NOT_ENABLED           = 41
WSSReturnCodes.CLIENT_NOT_AVAILABLE          = 42

WSSReturnCodes.CONN_SYSTEM_LOCKED            = 51

// More start course
WSSReturnCodes.USER_RUNNING_COURSE           = 53

// Web Ext version error
WSSReturnCodes.VERSION_CONFLICT              = 54

// Request returned more records than max
WSSReturnCodes.TOO_MANY_RESULTS              = 58

WSSReturnCodes.LICENSE_EXPIRED               = 59

// 360 Assessment does not exist
WSSReturnCodes.ASSESS_360_NOT_FOUND          = 60

// The specified class has not yet started
WSSReturnCodes.CLASS_NOT_STARTED             = 61

// Datasource not found
WSSReturnCodes.CONN_BAD_DBID                 = 63

// Electronic Signature Required
WSSReturnCodes.ESIG_REQUIRED                 = 64

// Electronic Signature Plus CCNo Required
WSSReturnCodes.ESIG_CCNO_REQUIRED            = 65

// Electronic Signature Valid
WSSReturnCodes.ESIG_VALID                    = 66

// Electronic Signature Invalid
WSSReturnCodes.ESIG_INVALID_PWD              = 67

// Electronic Signature Too Many Login Attempts
WSSReturnCodes.ESIG_TOO_MANY_BAD_LOGINS      = 68

// Too Many Login Attempts
WSSReturnCodes.TOO_MANY_BAD_LOGINS           = 69

// Password Required (i.e. non-blank)
WSSReturnCodes.PWD_REQUIRED                  = 70

// Password Expired
WSSReturnCodes.PWD_EXPIRED                   = 71

// Reset Password Length Error
WSSReturnCodes.PWD_LEN                       = 72

// Reset Password Bad Characters Err
WSSReturnCodes.PWD_CHARS                     = 73

// Reset Password Can't Be Blank Err
WSSReturnCodes.PWD_BLANK                     = 74

// LMS 6 Content Launch-related errors
WSSReturnCodes.LAUNCH_PWD_REQUIRED           = 76
WSSReturnCodes.LAUNCH_INVALID_PWD            = 77
WSSReturnCodes.LAUNCH_INHERIT_SCORES         = 78
WSSReturnCodes.LAUNCH_SESSION_NOT_STARTED    = 79
WSSReturnCodes.LAUNCH_SESSION_IN_PROGRESS    = 80
WSSReturnCodes.LAUNCH_SESSION_HAS_ENDED      = 81
WSSReturnCodes.LAUNCH_REG_NOT_CURRENT        = 82

WSSReturnCodes.START_CANNOT_PREVIEW			 = 84
WSSReturnCodes.START_CANNOT_REVIEW	         = 85
WSSReturnCodes.START_PRETEST_CONFIG	         = 86

WSSReturnCodes.USER_IS_IDLE                  = 87

WSSReturnCodes.ADMIN_CANT_RESET_PWD          = 88

WSSReturnCodes.PWD_NOT_ALLOWED               = 90

WSSReturnCodes.MGRMODE_NOT_ALLOWED           = 91 // Request not allowed in Manager Mode
WSSReturnCodes.MGRMODE_ALLOWRELEASE          = 92 // Request not allowed in Manager Mode, prompt to "release" effective user
WSSReturnCodes.MGRMODE_NOT_ALLOWEDONUSER     = 93 // Request not allowed for this manager and employee

WSSReturnCodes.RECORD_LOCKED				 = 94

WSSReturnCodes.UNSUPPORTED_BROWSER           = 95

// Log Codes used for additional error handling
function LogCodes()
{
}

LogCodes.XNONE                            = 0
LogCodes.CANT_CONNECT                     = 1
LogCodes.BAD_OPCODE                       = 2
LogCodes.CANT_COMPLETE_ASYNC_READ         = 3
LogCodes.SOCKET_CLOSED                    = 4
LogCodes.NO_CONNECT_INFO                  = 5
LogCodes.INTERNAL_ERROR                   = 6
LogCodes.TEMPLATE_ERROR                   = 7
LogCodes.CANT_COMPLETE_REQUEST            = 8
LogCodes.INVALID_REQUEST                  = 9
LogCodes.INVALID_AICC_POST                = 10
LogCodes.NO_SERVER_RESPONSE_HANDLER       = 11
LogCodes.RTS_ERR_CUSTOM                   = 12
LogCodes.RTS_ERR_DATABASE_UNKNOWN         = 13
