Sloodle status codes
From SLIS Second Life Wiki
Contents |
[edit] Core success codes
Codes 1 to 9999 are reserved for core functionality that will be shared by different modules.
In most cases, success will return 1.
In some cases, where the request was successful but had side effects, eg. the avatar was automatically registered and enrolled in a course before data for them was provided to administer a quiz, status codes for side effects will be included in a separate side-effect field in the status line.
(See Communicating_between_server_and_client#The_status_line )
| Code | Type | Summary |
|---|---|---|
| 1 | MISC | OK |
| 103 | SYSTEM | Successfully inserted data into system |
| 301 | MISC_REGISTER | OK - User is already registered |
| 322 | MISC_REGISTER | OK - User wasn't previously registered, but we registered them automatically, kept going, and everything worked out great. |
| 401 | MISC_ENROL | OK - User is already enrolled |
| 422 | MISC_ENROL | OK - User wasn't previously enrolled on the necessary course, but we enrolled them automatically, kept going, and everything worked out great. |
[edit] Core error codes
Codes -1 to -9999 are reserved for core functionality that will be shared between different modules.
| Code | Type | Summary |
|---|---|---|
| -1 | MISC | An unspecified error - try not to use these... |
| -101 | SYSTEM | An unknown system error occured (Try to be more specific...) . |
| -102 | SYSTEM | Could not connect to the database. |
| -103 | SYSTEM | Could not fetch data we expected to be there. |
| -104 | SYSTEM | Data formatting error |
| -105 | SYSTEM | XMLRPC error |
| -106 | SYSTEM | The Sloodle module is not installed in Moodle |
| -111 | SYSTEM | System is temporarily down for maintenance. |
| -121 | SYSTEM | Failed to send required email |
| -201 | OBJECT_AUTH | There was an unspecified problem authenticating the object. |
| -212 | OBJECT_AUTH | Object did not supply the necessary information to authenticate itself. |
| -213 | OBJECT_AUTH | Object authentication key was invalid |
| -214 | OBJECT_AUTH | Object not authorised in this context |
| -215 | OBJECT_AUTH | Prim password access has been disabled for this Controller. |
| -216 | OBJECT_AUTH | Object not found in database |
| -301 | USER_AUTH | There was an unspecified problem authenticating the user. |
| -311 | USER_AUTH | Object did not supply the necessary information to authenticate the user. |
| -321 | USER_AUTH | User was not registered and we weren't allowed to register them automatically. |
| -322 | USER_AUTH | User was not registered and we tried to register them but failed. |
| -331 | USER_AUTH | User did not have permission to access the resources requested . |
| -341 | USER_AUTH | Password cannot be reset via Sloodle, as user was not auto-registered (or has since registered an email account). |
| -401 | USER_ENROL | There was an unspecified problem involving course enrolment. |
| -421 | USER_ENROL | User was not enrolled on the course and we weren't allowed to enrol them automatically. |
| -422 | USER_ENROL | User was not enrolled on the course and tried to enrol them but failed. |
| -501 | COURSE | There was an unspecified problem involving the course you ar trying to use. |
| -511 | COURSE | The course you are trying to use was not specified. |
| -512 | COURSE | The course you are trying to use was not found. |
| -513 | COURSE | The course you are trying to use was inactive. |
| -514 | COURSE | The course you are trying to use was forbidden from being used with Sloodle. |
| -601 | MODULE | There was an unspecifed problem involving the module you're trying to use. |
| -611 | MODULE | The module you are trying to use was not specified. |
| -612 | MODULE | The module you are trying to use was found. |
| -613 | MODULE | The module you are trying to use was inactive. |
| -614 | MODULE | The module you are trying to use was forbidden from being used by Sloodle. |
| -701 | MODULE_INSTANCE | There was an unspecifed problem involving the module instance you're trying to use. |
| -711 | MODULE_INSTANCE | The module instance you are trying to use was not specified. |
| -712 | MODULE_INSTANCE | The module instance you are trying to use was not found. |
| -713 | MODULE_INSTANCE | The module instance you are trying to use was inactive. |
| -714 | MODULE_INSTANCE | The module instance you are trying to use was forbidden from being used by Sloodle. |
| -801 | REQUEST | Requested script permanently deleted. |
| -802 | REQUEST | Requested script moved (new location may be specified in the first data line) |
| -811 | REQUEST | Request incomplete (not all required data present) |
| -812 | REQUEST | Requested resource could not be found (although the request itself was handled successfully) |
| -901 | PROFILE | Unknown profile error |
| -902 | PROFILE | Profile does not exist |
| -903 | PROFILE | Profile already exists |
| -904 | PROFILE | Unknown profile command |
[edit] Object-Specific Success Codes
[edit] Choice
| Code | Type | Summary |
|---|---|---|
| 10001 | CHOICE_QUERY | Obtained results successfully |
| 10011 | CHOICE_SELECT | Added new choice selection for user |
| 10012 | CHOICE_SELECT | Updated choice selection for user |
| 10013 | CHOICE_SELECT | User had previously selected the same option |
[edit] Chat
| Code | Type | Summary |
|---|---|---|
| 10101 | CHAT_MESSAGE | Successfully added a chat message into the database (commonly used as a side-effect code) |
[edit] Object-Specific Error Codes
[edit] Choice
| Code | Type | Summary |
|---|---|---|
| -10001 | CHOICE_QUERY | Unable to query choice status for unknown reason |
| -10011 | CHOICE_SELECT | The user has already selected a choice, and choices cannot be updated |
| -10012 | CHOICE_SELECT | Maximum number of selections for this choice already made |
| -10013 | CHOICE_SELECT | Choice is not yet open for selections |
| -10014 | CHOICE_SELECT | Choice has been closed |
| -10015 | CHOICE_SELECT | Specified option not found in choice |
| -10016 | CHOICE_SELECT | Unable to make choice selection for unknown reason (usually more data appended in data lines) |
| -10021 | CHOICE_LIST_QUERY | Unable to query list of choice instances for unknown reason |
| -10022 | CHOICE_LIST_QUERY | Not choice instances available in course |
[edit] Chat
| Code | Type | Summary |
|---|---|---|
| -10101 | CHAT_MESSAGE | Failed to add chat message to database |
[edit] Assignments (e.g. PrimDrop)
| Code | Type | Summary |
|---|---|---|
| -10201 | ASSIGNMENT | User is not authorised to submit assignments |
| -10202 | ASSIGNMENT | Assignment is not yet open for submissions |
| -10203 | ASSIGNMENT | Assignment due date has passed, and is closed for submissions |
| -10204 | ASSIGNMENT | Assignment due date has passed, but is still accepting submissions (typically a side effect code) |
| -10205 | ASSIGNMENT | Resubmissions are not permitted |
[edit] Quiz
| Code | Type | Summary |
|---|---|---|
| -10301 | QUIZ | Student has used all quiz attempts |
| -10302 | QUIZ | Quiz requires password - this is not supported by Sloodle |
| -10303 | QUIZ | Error loading questions |
[edit] Blog
| Code | Type | Summary |
|---|---|---|
| -10401 | BLOG | Blogging is disabled on this site. |
| -10402 | BLOG | User does not have permission to write blogs |
| This page is part of the Sloodle documentation | |||
|---|---|---|---|
| SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home | |||
