Skip to content

Error Codes

User 1xx

json
// USER_NOT_FOUND

{
  "code": "101",
  "message": "User not found"
}
// USER_NOT_FOUND

{
  "code": "101",
  "message": "User not found"
}
json
// USER_ALREADY_EXISTS

{
  "code": "102",
  "message": "User already exists"
}
// USER_ALREADY_EXISTS

{
  "code": "102",
  "message": "User already exists"
}
json
// USER_PASSWORD_NOT_MATCH

{
  "code": "103",
  "message": "User password do not match"
}
// USER_PASSWORD_NOT_MATCH

{
  "code": "103",
  "message": "User password do not match"
}
json
// USER_PASSWORD_NOT_SAME_TWICE

{
  "code": "104",
  "message": "User passwords are not the same twice"
}
// USER_PASSWORD_NOT_SAME_TWICE

{
  "code": "104",
  "message": "User passwords are not the same twice"
}
json
// USER_CREATE_FAILED

{
  "code": "105",
  "message": "User registration failed"
}
// USER_CREATE_FAILED

{
  "code": "105",
  "message": "User registration failed"
}
json
// USER_UPDATE_FAILED

{
  "code": "106",
  "message": "User profile update failed"
}
// USER_UPDATE_FAILED

{
  "code": "106",
  "message": "User profile update failed"
}
json
// USER_LOGIN_FAILED

{
  "code": "107",
  "message": "User login failed"
}
// USER_LOGIN_FAILED

{
  "code": "107",
  "message": "User login failed"
}

Bookmark 2xx

json
// BOOKMARK_NOT_FOUND

{
  "code": "201",
  "message": "Bookmark not found"
}
// BOOKMARK_NOT_FOUND

{
  "code": "201",
  "message": "Bookmark not found"
}
json
// BOOKMARK_ALREADY_EXISTS

{
  "code": "202",
  "message": "Bookmark already exists"
}
// BOOKMARK_ALREADY_EXISTS

{
  "code": "202",
  "message": "Bookmark already exists"
}
json
// BOOKMARK_CREATE_FAILED

{
  "code": "203",
  "message": "Bookmark create failed"
}
// BOOKMARK_CREATE_FAILED

{
  "code": "203",
  "message": "Bookmark create failed"
}
json
// BOOKMARK_UPDATE_FAILED

{
  "code": "204",
  "message": "Bookmark update failed"
}
// BOOKMARK_UPDATE_FAILED

{
  "code": "204",
  "message": "Bookmark update failed"
}
json
// BOOKMARK_DELETE_FAILED

{
  "code": "205",
  "message": "Bookmark delete failed"
}
// BOOKMARK_DELETE_FAILED

{
  "code": "205",
  "message": "Bookmark delete failed"
}

Collection 3xx

json
// COLLECTION_NOT_FOUND

{
  "code": "301",
  "message": "Collection not found"
}
// COLLECTION_NOT_FOUND

{
  "code": "301",
  "message": "Collection not found"
}
json
// COLLECTION_ALREADY_EXISTS

{
  "code": "302",
  "message": "Collection already exists"
}
// COLLECTION_ALREADY_EXISTS

{
  "code": "302",
  "message": "Collection already exists"
}
json
// COLLECTION_CREATE_FAILED

{
  "code": "303",
  "message": "Collection create failed"
}
// COLLECTION_CREATE_FAILED

{
  "code": "303",
  "message": "Collection create failed"
}
json
// COLLECTION_UPDATE_FAILED

{
  "code": "304",
  "message": "Collection update failed"
}
// COLLECTION_UPDATE_FAILED

{
  "code": "304",
  "message": "Collection update failed"
}
json
// COLLECTION_DELETE_FAILED

{
  "code": "305",
  "message": "Collection delete failed"
}
// COLLECTION_DELETE_FAILED

{
  "code": "305",
  "message": "Collection delete failed"
}
json
// COLLECTION_HAS_BOOKMARKS

{
  "code": "306",
  "message": "Collection has bookmarks"
}
// COLLECTION_HAS_BOOKMARKS

{
  "code": "306",
  "message": "Collection has bookmarks"
}

Tag 4xx

json
// TAG_NOT_FOUND

{
  "code": "401",
  "message": "Tag not found"
}
// TAG_NOT_FOUND

{
  "code": "401",
  "message": "Tag not found"
}
json
// TAG_ALREADY_EXISTS
{
  "code": "402",
  "message": "Tag already exists"
}
// TAG_ALREADY_EXISTS
{
  "code": "402",
  "message": "Tag already exists"
}
json
// TAG_CREATE_FAILED

{
  "code": "403",
  "message": "Tag create failed"
}
// TAG_CREATE_FAILED

{
  "code": "403",
  "message": "Tag create failed"
}
json
// TAG_UPDATE_FAILED

{
  "code": "404",
  "message": "Tag update failed"
}
// TAG_UPDATE_FAILED

{
  "code": "404",
  "message": "Tag update failed"
}
json
// TAG_DELETE_FAILED

{
  "code": "405",
  "message": "Tag delete failed"
}
// TAG_DELETE_FAILED

{
  "code": "405",
  "message": "Tag delete failed"
}
json
// TAG_HAS_BOOKMARKS

{
  "code": "406",
  "message": "Tag has bookmarks"
}
// TAG_HAS_BOOKMARKS

{
  "code": "406",
  "message": "Tag has bookmarks"
}

Upload 5xx

json
// UPLOAD_NO_FILE

{
  "code": "501",
  "message": "Upload no file"
}
// UPLOAD_NO_FILE

{
  "code": "501",
  "message": "Upload no file"
}
json
// UPLOAD_FILE_TYPE_NOT_ALLOW

{
  "code": "502",
  "message": "Upload file type not allow"
}
// UPLOAD_FILE_TYPE_NOT_ALLOW

{
  "code": "502",
  "message": "Upload file type not allow"
}

Common

json
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
json
// FAILED

{
  "code": "1",
  "message": "Failed"
}
// FAILED

{
  "code": "1",
  "message": "Failed"
}