Difference between revisions of "TextServer Error Codes"

From Textserver wiki
Jump to: navigation, search
Line 6: Line 6:
 
{|
 
{|
 
! style="text-align:left;" | HTTP error !! style="text-align:left;" | TS code !! style="text-align:left;" | TS error reason
 
! style="text-align:left;" | HTTP error !! style="text-align:left;" | TS code !! style="text-align:left;" | TS error reason
|-
 
| HTTP 500 - Internal Server Error || TS-100 || Internal server error
 
|-
 
| HTTP 500 - Internal Server Error || TS-101 || Error executing the task 
 
|-
 
| HTTP 500 - Internal Server Error || TS-102 || Error retrieving the result
 
|-
 
| HTTP 503 - Service Unavailable || TS-103 || Couldn't find a server for the task. Try again later
 
 
|-
 
|-
 
| HTTP 400 - Bad Request || TS-110 || Input file doesn't match with the available demo file
 
| HTTP 400 - Bad Request || TS-110 || Input file doesn't match with the available demo file
 
|-
 
|-
 
| HTTP 400 - Bad Request || TS-111 || Error validating file
 
| HTTP 400 - Bad Request || TS-111 || Error validating file
|-
 
| HTTP 500 - Internal Server Error || TS-112 || Error saving file input
 
|-
 
| HTTP 503 - Service Unavailable || TS-113 || Requested demo doesn't exists
 
 
|-
 
|-
 
| HTTP 400 - Bad Request || TS-114 || Wrong number of parameters / Missing required parameter / Invalid value 'X' for parameter 'Y'
 
| HTTP 400 - Bad Request || TS-114 || Wrong number of parameters / Missing required parameter / Invalid value 'X' for parameter 'Y'
Line 34: Line 22:
 
|-
 
|-
 
| HTTP 400 - Bad Request || TS-119 || No input given
 
| HTTP 400 - Bad Request || TS-119 || No input given
 +
|-
 +
| HTTP 400 - Bad Request || TS-124 || Configuration parameter not found
 +
|-
 +
| HTTP 400 - Bad Request || TS-127 || File input has incorrect type. Must be a zip file
 +
|-
 +
| HTTP 400 - Bad Request || TS-128 || Batch processing not available with this input type
 
|-
 
|-
 
| HTTP 401 - Unauthorized || TS-120 || Wrong username or password
 
| HTTP 401 - Unauthorized || TS-120 || Wrong username or password
 
|-
 
|-
| HTTP 503 - Service Unavailable || TS-122 || Service is disabled by the administrator
+
| HTTP 401 - Unauthorized || TS-126 || This user can't use the requested service
 +
|-
 +
| HTTP 403 - Forbidden || TS-200 || Access forbidden
 
|-
 
|-
 
| HTTP 404 - Not Found || TS-123 || Service not found
 
| HTTP 404 - Not Found || TS-123 || Service not found
 
|-
 
|-
| HTTP 400 - Bad Request || TS-124 || Configuration parameter not found
+
| HTTP 500 - Internal Server Error || TS-100 || Internal server error
 
|-
 
|-
| HTTP 503 - Service Unavailable || TS-125 || Requested results are not ready. Process has not finished yet.
+
| HTTP 500 - Internal Server Error || TS-101 || Error executing the task 
 
|-
 
|-
| HTTP 401 - Unauthorized || TS-126 || This user can't use the requested service
+
| HTTP 500 - Internal Server Error || TS-102 || Error retrieving the result
 
|-
 
|-
| HTTP 400 - Bad Request || TS-127 || File input has incorrect type. Must be a zip file  
+
| HTTP 500 - Internal Server Error || TS-112 || Error saving file input
 
|-
 
|-
| HTTP 400 - Bad Request || TS-128 || Batch processing not available with this input type
+
| HTTP 503 - Service Unavailable || TS-103 || Couldn't find a server for the task. Try again later
 
|-
 
|-
| HTTP 403 - Forbidden || TS-200 || Access forbidden
+
| HTTP 503 - Service Unavailable || TS-113 || Requested demo doesn't exists
 +
|-
 +
| HTTP 503 - Service Unavailable || TS-122 || Service is disabled by the administrator
 +
|-
 +
| HTTP 503 - Service Unavailable || TS-125 || Requested results are not ready. Process has not finished yet.
 
|}
 
|}

Revision as of 15:47, 22 January 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-110 Input file doesn't match with the available demo file
HTTP 400 - Bad Request TS-111 Error validating file
HTTP 400 - Bad Request TS-114 Wrong number of parameters / Missing required parameter / Invalid value 'X' for parameter 'Y'
HTTP 400 - Bad Request TS-115 File input is not allowed for this service and client application
HTTP 400 - Bad Request TS-116 Text input is not allowed for this service and client application
HTTP 400 - Bad Request TS-117 Text is longer than the maximum allowed
HTTP 400 - Bad Request TS-118 File is longer than the maximum
HTTP 400 - Bad Request TS-119 No input given
HTTP 400 - Bad Request TS-124 Configuration parameter not found
HTTP 400 - Bad Request TS-127 File input has incorrect type. Must be a zip file
HTTP 400 - Bad Request TS-128 Batch processing not available with this input type
HTTP 401 - Unauthorized TS-120 Wrong username or password
HTTP 401 - Unauthorized TS-126 This user can't use the requested service
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
HTTP 500 - Internal Server Error TS-101 Error executing the task
HTTP 500 - Internal Server Error TS-102 Error retrieving the result
HTTP 500 - Internal Server Error TS-112 Error saving file input
HTTP 503 - Service Unavailable TS-103 Couldn't find a server for the task. Try again later
HTTP 503 - Service Unavailable TS-113 Requested demo doesn't exists
HTTP 503 - Service Unavailable TS-122 Service is disabled by the administrator
HTTP 503 - Service Unavailable TS-125 Requested results are not ready. Process has not finished yet.