public interface

TaskStatusCodes

com.microstrategy.web.tasks.TaskStatusCodes
Known Indirect Subclasses

Class Overview

This interface defines the status codes that can be returned for Tasks. They are modeled after the HTTP Status codes, though not strictly. These code are open to diverge from the HTTP standard, if necessary.

Summary

Constants
int TASK_INTERNAL_ERROR This status code indicates that while the Task seems to be properly configured and the input request is well formed, an unexpected error occured.
int TASK_MISCONFIGURED This status code indicates while that a valid Task was requested and properly formed, the Task itself was misconfigured.
int TASK_NOT_FOUND This status code indicates that while a Task request was made, it could not be found by any of the Task factories.
int TASK_NOT_REQUESTED This status code indicates that the Task Processor Controller was invoked, though no Task was requested.
int TASK_REQUEST_MALFORMED This status code indicates that while a Task request was made, and the Task was located, the request was malformed.
int TASK_REQUEST_RESUBMIT This status code indicates that the process is taking time on the i-server and the client can resubmit the task to keep the client<->web-server session alive OR perform some other action knowing that the results are not ready yet
int TASK_SUCCESS This is the success status code.
int TASK_UNAUTHORIZED This status code indicates that current user is not authorized to execute the requested task.

Constants

public static final int TASK_INTERNAL_ERROR

This status code indicates that while the Task seems to be properly configured and the input request is well formed, an unexpected error occured. Subsequent attempts (with the same or different parameters) may succeed. A specific error code is included the response to assist the caller in diagnosing the problem.

Constant Value: 500 (0x000001f4)

public static final int TASK_MISCONFIGURED

This status code indicates while that a valid Task was requested and properly formed, the Task itself was misconfigured. The Task could not produce a valid response to the request for any number of reasons. The essential fact here is that the Task should no longer be invoked. No amount of user input modifications will produce a valid output.

Constant Value: 503 (0x000001f7)

public static final int TASK_NOT_FOUND

This status code indicates that while a Task request was made, it could not be found by any of the Task factories.

Constant Value: 404 (0x00000194)

public static final int TASK_NOT_REQUESTED

This status code indicates that the Task Processor Controller was invoked, though no Task was requested.

Constant Value: 303 (0x0000012f)

public static final int TASK_REQUEST_MALFORMED

This status code indicates that while a Task request was made, and the Task was located, the request was malformed. This may be the case if any number of required parameters were absent or malformed. This also consists of a class of validation errors, those that cannot be performed by the Task Infrastructure, but by the Task itself. Essentially, these exceptions indicate some form of user error. The Task is properly configured, but due to the input parameters, was unable to complete.

Constant Value: 400 (0x00000190)

public static final int TASK_REQUEST_RESUBMIT

This status code indicates that the process is taking time on the i-server and the client can resubmit the task to keep the client<->web-server session alive OR perform some other action knowing that the results are not ready yet

Constant Value: 449 (0x000001c1)

public static final int TASK_SUCCESS

This is the success status code. A Task request was made, the request was well-formed and the Task was properly configured.

Constant Value: 200 (0x000000c8)

public static final int TASK_UNAUTHORIZED

This status code indicates that current user is not authorized to execute the requested task. This might happen if user tries to execute an administrative task with regular task processor while the admin processor should be used.

Constant Value: 401 (0x00000191)