Synology PhotoStation REST API

Version 0.2.0

An Unofficial Reference

List of API Error Codes

List of all error codes and their names. Taken mostly from /photo/webapi/webapi.inc.php in PhotoStation package.

General Errors

Code Name
100 WEBAPI_ERR_UNKNOWN
101 WEBAPI_ERR_BAD_REQUEST
102 WEBAPI_ERR_NO_SUCH_API
103 WEBAPI_ERR_NO_SUCH_METHOD
104 WEBAPI_ERR_NOT_SUPPORTED_VERSION
105 WEBAPI_ERR_NO_PERMISSION
106 WEBAPI_ERR_SESSION_TIMEOUT
107 WEBAPI_ERR_SESSION_INTERRUPT

SYNO.PhotoStation.Info (401-405)

SYNO.PhotoStation.Auth (406-415)

Code Name
406 PHOTOSTATION_AUTH_LOGIN_NOPRIVILEGE
407 PHOTOSTATION_AUTH_LOGIN_ERROR
408 PHOTOSTATION_AUTH_LOGIN_DISABLE_ACCOUNT
409 PHOTOSTATION_AUTH_LOGIN_GUEST_ERROR
410 PHOTOSTATION_AUTH_LOGIN_MAX_TRIES

SYNO.PhotoStation.Album (416-425)

Code Name
416 PHOTOSTATION_ALBUM_PASSWORD_ERROR
417 PHOTOSTATION_ALBUM_NO_ACCESS_RIGHT
418 PHOTOSTATION_ALBUM_NO_UPLOAD_RIGHT
419 PHOTOSTATION_ALBUM_NO_MANAGE_RIGHT
420 PHOTOSTATION_ALBUM_NOT_ADMIN
421 PHOTOSTATION_ALBUM_HAS_EXIST
422 PHOTOSTATION_ALBUM_CREATE_FAIL
423 PHOTOSTATION_ALBUM_EDIT_FAIL
424 PHOTOSTATION_ALBUM_DELETE_FAIL
425 PHOTOSTATION_ALBUM_SELECT_CONFLICT

SYNO.PhotoStation.Permission (426-435)

Code Name
426 PHOTOSTATION_PERMISSION_BAD_PARAMS
427 PHOTOSTATION_PERMISSION_ACCESS_DENY

SYNO.PhotoStation.Tag (436-445)

Code Name
436 PHOTOSTATION_TAG_LIST_FAIL
437 PHOTOSTATION_TAG_GETINFO_FAIL
438 PHOTOSTATION_TAG_CREATE_FAIL
439 PHOTOSTATION_TAG_EDIT_FAIL
440 PHOTOSTATION_TAG_ACCESS_DENY
441 PHOTOSTATION_TAG_HAS_EXIST
442 PHOTOSTATION_TAG_SEARCH_FAIL

SYNO.PhotoStation.SmartAlbum (446-455)

Code Name
446 PHOTOSTATION_SMARTALBUM_CREATE_FAIL
447 PHOTOSTATION_SMARTALBUM_EDIT_FAIL
448 PHOTOSTATION_SMARTALBUM_ACCESS_DENY
449 PHOTOSTATION_SMARTALBUM_NOT_EXIST
450 PHOTOSTATION_SMARTALBUM_TAG_NOT_EXIST
451 PHOTOSTATION_SMARTALBUM_CREATE_FAIL_EXIST

SYNO.PhotoStation.Photo (456-465)

Code Name
456 PHOTOSTATION_PHOTO_BAD_PARAMS
457 PHOTOSTATION_PHOTO_ACCESS_DENY
458 PHOTOSTATION_PHOTO_SELECT_CONFLICT

SYNO.PhotoStation.PhotoTag (466-475)

Code Name
466 PHOTOSTATION_PHOTO_TAG_ACCESS_DENY
467 PHOTOSTATION_PHOTO_TAG_NOT_EXIST
468 PHOTOSTATION_PHOTO_TAG_DUPLICATE
469 PHOTOSTATION_PHOTO_TAG_VIDEO_NOT_EXIST
470 PHOTOSTATION_PHOTO_TAG_ADD_GEO_DESC_FAIL
471 PHOTOSTATION_PHOTO_TAG_ADD_PEOPLE_FAIL
472 PHOTOSTATION_PHOTO_TAG_DELETE_FAIL
473 PHOTOSTATION_PHOTO_TAG_PEOPLE_TAG_CONFIRM_FAIL

SYNO.PhotoStation.Category (476-490)

Code Name
476 PHOTOSTATION_CATEGORY_ACCESS_DENY
477 PHOTOSTATION_CATEGORY_WRONG_ID_FORMAT
478 PHOTOSTATION_CATEGORY_GETINFO_FAIL
479 PHOTOSTATION_CATEGORY_CREATE_FAIL
480 PHOTOSTATION_CATEGORY_DELETE_FAIL
481 PHOTOSTATION_CATEGORY_EDIT_FAIL
482 PHOTOSTATION_CATEGORY_ARRANGE_FAIL
483 PHOTOSTATION_CATEGORY_ADD_ITEM_FAIL
484 PHOTOSTATION_CATEGORY_LIST_ITEM_FAIL
485 PHOTOSTATION_CATEGORY_REMOVE_ITEM_FAIL
486 PHOTOSTATION_CATEGORY_ARRANGE_ITEM_FAIL
487 PHOTOSTATION_CATEGORY_DUPLICATE

SYNO.PhotoStation.Comment (491-495)

Code Name
491 PHOTOSTATION_COMMENT_VALIDATE_FAIL
492 PHOTOSTATION_COMMENT_ACCESS_DENY
493 PHOTOSTATION_COMMENT_CREATE_FAIL

SYNO.PhotoStation.Thumb (496-505)

Code Name
501 PHOTOSTATION_THUMB_BAD_PARAMS
502 PHOTOSTATION_THUMB_ACCESS_DENY
503 PHOTOSTATION_THUMB_NO_COVER
504 PHOTOSTATION_THUMB_FILE_NOT_EXISTS

SYNO.PhotoStation.Download (506-515)

Code Name
506 PHOTOSTATION_DOWNLOAD_BAD_PARAMS
507 PHOTOSTATION_DOWNLOAD_ACCESS_DENY
508 PHOTOSTATION_DOWNLOAD_CHDIR_ERROR

SYNO.PhotoStation.File (516-525)

Code Name
516 PHOTOSTATION_FILE_BAD_PARAMS
517 PHOTOSTATION_FILE_ACCESS_DENY
518 PHOTOSTATION_FILE_FILE_EXT_ERR
519 PHOTOSTATION_FILE_DIR_NOT_EXISTS
520 PHOTOSTATION_FILE_UPLOAD_ERROR
521 PHOTOSTATION_FILE_NO_FILE
522 PHOTOSTATION_FILE_UPLOAD_CANT_WRITE

SYNO.PhotoStation.Cover (526-530)

Code Name
526 PHOTOSTATION_COVER_ACCESS_DENY
527 PHOTOSTATION_COVER_ALBUM_NOT_EXIST
528 PHOTOSTATION_COVER_PHOTO_VIDEO_NOT_EXIST
529 PHOTOSTATION_COVER_PHOTO_VIDEO_NOT_IN_ALBUM
530 PHOTOSTATION_COVER_SET_FAIL

SYNO.PhotoStation.Rotate (531-535)

Code Name
531 PHOTOSTATION_ROTATE_ACCESS_DENY
532 PHOTOSTATION_ROTATE_SET_FAIL

SYNO.PhotoStation.SlideshowMusic (536-545)

Code Name
536 PHOTOSTATION_SLIDESHOWMUSIC_ACCESS_DENY
537 PHOTOSTATION_SLIDESHOWMUSIC_SET_FAIL
538 PHOTOSTATION_SLIDESHOWMUSIC_FILE_EXT_ERR
539 PHOTOSTATION_SLIDESHOWMUSIC_UPLOAD_ERROR
540 PHOTOSTATION_SLIDESHOWMUSIC_NO_FILE
541 PHOTOSTATION_SLIDESHOWMUSIC_EXCEED_LIMIT

SYNO.PhotoStation.DsmShare (546-550)

Code Name
546 PHOTOSTATION_DSMSHARE_UPLOAD_ERROR
547 PHOTOSTATION_DSMSHARE_ACCESS_DENY

SYNO.PhotoStation.SharedAlbum (551-560)

Code Name
551 PHOTOSTATION_SHARED_ALBUM_ACCESS_DENY
552 PHOTOSTATION_SHARED_ALBUM_BAD_PARAMS
553 PHOTOSTATION_SHARED_ALBUM_HAS_EXISTED
554 PHOTOSTATION_SHARED_ALBUM_CREATE_FAIL
555 PHOTOSTATION_SHARED_ALBUM_NOT_EXISTS
556 PHOTOSTATION_SHARED_ALBUM_GET_INFO_ERROR
557 PHOTOSTATION_SHARED_ALBUM_LIST_ERROR

SYNO.PhotoStation.Log (561-565)

Code Name
561 PHOTOSTATION_LOG_ACCESS_DENY

SYNO.PhotoStation.PATH (566-570)

Code Name
566 PHOTOSTATION_PATH_ACCESS_DENY

SYNO.PhotoStation.ACL (571-580)

Code Name
571 PHOTOSTATION_ACL_NOT_SUPPORT
572 PHOTOSTATION_ACL_CONVERT_FAIL

SYNO.PhotoStation.AdvancedShare (581-590)

Code Name
581 PHOTOSTATION_PHOTO_AREA_TAG_ADD_FAIL
582 PHOTOSTATION_PHOTO_AREA_TAG_NOT_ENABLED
583 PHOTOSTATION_PHOTO_AREA_TAG_DELETE_FAIL