Difference between revisions of "TextServer Error Codes"

From Textserver wiki
Jump to: navigation, search
(Created page with " When a request can not be served, TextServer will return an HTTP error code. The error message will contain an internal error code and a detailed explanation of the reason o...")
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
When a request can not be served, TextServer will return an HTTP error code. The error message will contain an internal error code and a detailed explanation of the reason of the error.
+
When a request can not be served, TextServer will return an HTTP error code. The error message will contain an internal error code and a detailed explanation of the reason of the error.
  
Here is a list of TextServer error codes (<tt>TS-XXX</tt>) and messages, together with HTTP error codes they are embedded in.
+
Here is a list of TextServer error codes (<tt>TS-XXX</tt>) and messages, together with HTTP error codes they are embedded in.
  
"100","en","500","Internal server error"
+
{| class="wikitable"
"101","en","500","Error executing the task"
+
! style="text-align:left;" | HTTP error !! style="text-align:left;" | TS code !! style="text-align:left;" | TS error reason
"102","en","500","Error retrieving the result"
+
|-
"103","en","503","Couldn't find a server for the task. Try again later"
+
| rowspan="13"| HTTP 400 - Bad Request || TS-111 || Error validating file
"110","en","400","Input file doesn't match with the available demo file"
+
|-
"111","en","400","Error validating file"
+
| TS-114 || Wrong number of parameters / Missing required parameter / Invalid value 'X' for parameter 'Y'
"112","en","500","Error saving file input"
+
|-
"113","en","503","Requested demo doesn't exists"
+
| TS-117 || Text is longer than the maximum allowed
"114","en","400","Wrong number of parameters"
+
|-
"115","en","400","File input is not allowed for this service and client application"
+
| TS-118 || File is longer than the maximum
"116","en","400","Text input is not allowed for this service and client application"
+
|-
"117","en","400","Text is longer than the maximum allowed"
+
| TS-119 || No input given
"118","en","400","File is longer than the maximum"
+
|-
"119","en","400","No input given"
+
| TS-124 || Configuration parameter not found
"120","en","401","Wrong username or password"
+
|-
"122","en","503","Service is disabled"
+
| TS-127 || File input has incorrect type. Must be a zip file  
"123","en","404","Service not found"
+
|-
"124","en","400","Configuration parameter not found"
+
| TS-128 || Batch processing not available with this input type  
"125","en","503","Requested file is not ready. Process has not finished yet."
+
|-
"126","en","401","This user can't use the requested service"
+
| TS-129 || File input has incorrect type. Cannot be a Zip file for interactive processing
"127","en","400","File input has incorrect type. Must be a zip file"
+
|-
"128","en","400","Batch processing not available with this input type"
+
| TS-130 || Local interactive queries not allowed
"200","en","403","Access forbidden"
+
|-
 +
| TS-131 || Local batch queries not allowed
 +
|-
 +
| TS-132 || Remote interactive queries not allowed
 +
|-
 +
| TS-133 || Remote batch queries not allowed
 +
|-
 +
| rowspan="2" | HTTP 401 - Unauthorized || TS-120 || Wrong username or password
 +
|-
 +
| TS-126 || Maximum daily demo usage for this user and service reached.
 +
|-
 +
| HTTP 403 - Forbidden || TS-200 || Access forbidden
 +
|-
 +
| HTTP 404 - Not Found || TS-123 || Service not found
 +
|-
 +
| rowspan="4" | HTTP 500 - Internal Server Error || TS-100 || Internal server error
 +
|-
 +
| TS-101 || Error executing the task 
 +
|-
 +
| TS-102 || Error retrieving the result
 +
|-
 +
| TS-112 || Error saving file input
 +
|-
 +
| rowspan="4" | HTTP 503 - Service Unavailable || TS-103 || Couldn't find a server for the task. Try again later
 +
|-
 +
| TS-113 || Requested demo doesn't exists
 +
|-
 +
| TS-122 || Service is disabled by the administrator
 +
|-
 +
| TS-125 || Requested results are not ready. Process has not finished yet.
 +
|}

Latest revision as of 12:18, 15 April 2016

When a request can not be served, TextServer will return an HTTP error code. The error message will contain an internal error code and a detailed explanation of the reason of the error.

Here is a list of TextServer error codes (TS-XXX) and messages, together with HTTP error codes they are embedded in.

HTTP error TS code TS error reason
HTTP 400 - Bad Request TS-111 Error validating file
TS-114 Wrong number of parameters / Missing required parameter / Invalid value 'X' for parameter 'Y'
TS-117 Text is longer than the maximum allowed
TS-118 File is longer than the maximum
TS-119 No input given
TS-124 Configuration parameter not found
TS-127 File input has incorrect type. Must be a zip file
TS-128 Batch processing not available with this input type
TS-129 File input has incorrect type. Cannot be a Zip file for interactive processing
TS-130 Local interactive queries not allowed
TS-131 Local batch queries not allowed
TS-132 Remote interactive queries not allowed
TS-133 Remote batch queries not allowed
HTTP 401 - Unauthorized TS-120 Wrong username or password
TS-126 Maximum daily demo usage for this user and service reached.
HTTP 403 - Forbidden TS-200 Access forbidden
HTTP 404 - Not Found TS-123 Service not found
HTTP 500 - Internal Server Error TS-100 Internal server error
TS-101 Error executing the task
TS-102 Error retrieving the result
TS-112 Error saving file input
HTTP 503 - Service Unavailable TS-103 Couldn't find a server for the task. Try again later
TS-113 Requested demo doesn't exists
TS-122 Service is disabled by the administrator
TS-125 Requested results are not ready. Process has not finished yet.