diff --git a/htdocs/api/class/api_documents.class.php b/htdocs/api/class/api_documents.class.php index 98970c67546..891c3969f81 100644 --- a/htdocs/api/class/api_documents.class.php +++ b/htdocs/api/class/api_documents.class.php @@ -60,10 +60,9 @@ class Documents extends DolibarrApi * @param string $original_file Relative path with filename, relative to modulepart (for example: IN201701-999/IN201701-999.pdf) * @return array List of documents * - * @throws 400 - * @throws 401 - * @throws 404 - * @throws 200 + * @throws RestException 400 + * @throws RestException 401 + * @throws RestException 404 * * @url GET /download */ @@ -118,12 +117,11 @@ class Documents extends DolibarrApi * @param string $langcode Language code like 'en_US', 'fr_FR', 'es_ES', ... (If not set, use the default language). * @return array List of documents * - * @throws 500 - * @throws 501 - * @throws 400 - * @throws 401 - * @throws 404 - * @throws 200 + * @throws RestException 500 + * @throws RestException 501 + * @throws RestException 400 + * @throws RestException 401 + * @throws RestException 404 * * @url PUT /builddoc */ @@ -237,11 +235,10 @@ class Documents extends DolibarrApi * @param string $sortorder Sort order ('asc' or 'desc') * @return array Array of documents with path * - * @throws 200 - * @throws 400 - * @throws 401 - * @throws 404 - * @throws 500 + * @throws RestException 400 + * @throws RestException 401 + * @throws RestException 404 + * @throws RestException 500 * * @url GET / */ @@ -447,11 +444,10 @@ class Documents extends DolibarrApi * @param int $overwriteifexists Overwrite file if exists (1 by default) * @return string * - * @throws 200 - * @throws 400 - * @throws 401 - * @throws 404 - * @throws 500 + * @throws RestException 400 + * @throws RestException 401 + * @throws RestException 404 + * @throws RestException 500 * * @url POST /upload */ @@ -627,10 +623,9 @@ class Documents extends DolibarrApi * @param string $original_file Relative path with filename, relative to modulepart (for example: PRODUCT-REF-999/IMAGE-999.jpg) * @return array List of documents * - * @throws 400 - * @throws 401 - * @throws 404 - * @throws 200 + * @throws RestException 400 + * @throws RestException 401 + * @throws RestException 404 * * @url DELETE / */ diff --git a/htdocs/api/class/api_login.class.php b/htdocs/api/class/api_login.class.php index 59a527d251c..748d1f2ac31 100644 --- a/htdocs/api/class/api_login.class.php +++ b/htdocs/api/class/api_login.class.php @@ -48,9 +48,8 @@ class Login * @param int $reset Reset token (0=get current token, 1=ask a new token and canceled old token. This means access using current existing API token of user will fails: new token will be required for new access) * @return array Response status and user token * - * @throws 200 - * @throws 403 - * @throws 500 + * @throws RestException 403 + * @throws RestException 500 * * @url GET / * @url POST /