📌
Related pages:
🇬🇧 API return codes
1. Liste des codes retour de l'API
Cette page résume au format Markdown tous les codes retour de l'API de Pwic.wiki.
C'est également une page de démonstration de ce que peut faire une extension de code dans pwic_extension.py
: ces tableaux sont générés automatiquement et non sauvegardés dans la page.
1.1. /api/document/convert
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
403 |
Disabled feature |
422 |
File cannot be converted |
1.2. /api/document/create
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
403 |
Forbidden content |
409 |
Duplicate file name in the project |
413 |
File size limit or number of pixels exceeded |
415 |
Failed MIME verification |
500 |
File incorrectly managed on the server |
503 |
Update temporarily unavailable or ongoing server maintenance |
1.3. /api/document/delete
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations, or not found |
500 |
File incorrectly managed on the server |
503 |
Update temporarily unavailable or ongoing server maintenance |
1.4. /api/document/get
RC |
Description |
200 |
Successful operation |
302 |
Successful redirection to another location |
400 |
Invalid parameters |
404 |
Unsufficient authorizations, or not found |
1.5. /api/document/list
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
404 |
Unknown project or page |
1.6. /api/document/remote/convert
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
403 |
Disabled feature |
422 |
File cannot be converted |
1.7. /api/document/rename
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations, or not found |
500 |
File incorrectly managed on the server |
503 |
Update temporarily unavailable or ongoing server maintenance |
1.8. /api/login
RC |
Description |
200 |
Successful operation if no body, else redirected page from 302 |
302 |
Redirection with the parameter ?failed if the credentials were rejected |
401 |
Unsufficient authorizations |
408 |
Expired PIN code for 2FA TOTP |
1.9. /api/markdown/convert
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
1.10. /api/oauth
RC |
Description |
200 |
Successful login |
302 |
Successful login |
307 |
Redirection with the parameter ?failed if the credentials were rejected |
401 |
Unsufficient authorizations |
501 |
Invalid OAuth provider |
503 |
Connection temporarily unavailable |
1.11. /api/page/create
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
403 |
Exceeded limitations |
404 |
Reference page not found |
503 |
Update temporarily unavailable |
1.12. /api/page/delete
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations, or not found |
500 |
Dependent files not fully removed from the system |
503 |
Update temporarily unavailable |
1.13. /api/page/edit
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
503 |
Update temporarily unavailable |
1.14. /api/page/export
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations, or not found |
403 |
Disabled feature |
404 |
Rejected by a custom rule |
415 |
Invalid file format |
1.15. /api/page/move
RC |
Description |
302 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations, or project not found |
403 |
Target page already exists |
404 |
Unkown source page |
409 |
Attachments in conflict with the target project |
500 |
Corrupted documents to be repaired |
503 |
Update temporarily unavailable |
1.16. /api/page/validate
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations, or not found |
503 |
Update temporarily unavailable |
1.17. /api/project/env/set
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
1.18. /api/project/get
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
501 |
Unsupported combination of options |
1.19. /api/project/graph/get
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
403 |
Disabled feature |
1.20. /api/project/list
RC |
Description |
200 |
Successful operation |
401 |
Unsufficient authorizations |
1.21. /api/project/progress/get
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
1.22. /api/project/users/get
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations, or not found |
1.23. /api/server/env/get
RC |
Description |
200 |
Successful operation |
401 |
Unsufficient authorizations, or not found |
1.24. /api/server/headers/get
RC |
Description |
200 |
Successful operation |
401 |
Session not active |
1.25. /api/server/ping
RC |
Description |
200 |
Session still alive |
401 |
Session not active |
1.26. /api/server/shutdown
RC |
Description |
403 |
Connect from localhost only |
503 |
Shutdown temporarily unavailable |
1.27. /api/server/unlock
RC |
Description |
200 |
Successful operation |
400 |
Database not locked |
403 |
Connect from localhost only |
1.28. /api/user/create
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
403 |
Forbidden operation |
503 |
Update temporarily unavailable |
1.29. /api/user/language/set
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
1.30. /api/user/password/change
RC |
Description |
200 |
Successful operation |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
500 |
Invalid configuration of the server |
503 |
Update temporarily unavailable |
1.31. /api/user/roles/set
RC |
Description |
200 |
Successful operation, followed by the new value |
400 |
Invalid parameters |
401 |
Unsufficient authorizations |
503 |
Update temporarily unavailable |
Revision #1 was last modified by gitbra
on 2024-11-30 at 00:00:00 — 771ae13dc136c3ab