Version 1.1 - Status Codes


If your continually receiving errors 14-34 let me know immediately it may have something to do with how your database is setup as it would mean that the API is not able to update your collabtive database

Generally you want to be checking for Success (1) and everything else to be treated as an error.

Status Code Status Message Detailed Description
1 Success! This means that the call succeeded
2 Invalid username or password Either the username or password was wrong or not passed.
3 Sessions are disabled, you need to pass a userid (uid)! You have sessions disabled but your not passing a user context
4 User is not logged in, Please login! http://CollabtiveURL/mobile/login/ Either the session has expired or your not passing a valid sessionid (sid)
5 User {username} is not allowed to perform action {action} for {branch}. This means that the user is not allowed to perform that action, for instance User mcameron is not allowed to perform action delete for milestones.
6 This method is not available in this version Means you can not use this call yet, and will have to use the site to manage.
7 You must pass a project id (pid) ! Means that you did not pass the project id (pid) when making the call.
8 You must pass a milestone id (mid) ! Means that you did not pass the milestone id (mid) when making the call.
9 You must pass a tasklist id (tlid) ! Means that you did not pass the tasklist id (tlid) when making the call.
10 You must pass a task id (tid) ! Means that you did not pass the task id (tid) when making the call.
11 You must pass a role id (rid) ! Means that you did not pass the role id (rid) when making the call.
12 A Project id (pid) or a tasklist id (tlid) is required! Means that you did not pass the tasklist id (tlid) or a Project id (pid) when making the call.
13 You must pass a Project id (pid) or a User id (uid) or a milestone id (mid)! Deprecated
14 Failed to update project, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
15 Failed to update milestone, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
16 Failed to update tasklist, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
17 Failed to update task, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
18 Failed to delete project, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
19 Failed to delete milestone, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
20 Failed to delete tasklist, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
21 Failed to delete task, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
22 Failed to close project, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
23 Failed to close milestone, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
24 Failed to close tasklist, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
25 Failed to close task, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
26 Failed to open project, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
27 Failed to open milestone, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
28 Failed to open tasklist, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
29 Failed to open task, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
30 Failed to create project, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
31 Failed to create milestone, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
32 Failed to create tasklist, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
33 Failed to create task, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.
34 Failed to add user to project, please try again later The call failed to update the database, if your server is slow or being updated too fast this could occur.


Last edited Feb 24, 2012 at 9:42 PM by darxval, version 4

Comments

No comments yet.