6.6.4. Status Code → Process End Code Conversion Handler

This handler converts the status code of the process result by the subsequent handler to the exit code of the process.

The process flow is as follows.

../../../../_images/StatusCodeConvertHandler_flow.png

6.6.4.2. Module list

<dependency>
  <groupId>com.nablarch.framework</groupId>
  <artifactId>nablarch-fw-standalone</artifactId>
</dependency>

6.6.4.3. Constraints

Configure immediately after Common Launcher
This handler converts the status code of the process result to the exit code of the process.

6.6.4.4. Status code → Process exit code conversion

Conversion of status code to process exit code is performed according to the following rules.

Important

Use 100 to 199 when specifying the status code in the error process of the application.

Status code Process exit code
-1 or less 1
0 ~ 199 0 ~ 199 (not converted)
200 ~ 399 0
400 10
401 11
403 12
404 13
409 14
400 ~ 499 excluding the above 15
Above 500 20

Tip

The conversion rule cannot be changed by configuration for this handler. For this reason, a project-specific conversion handler has to be created if the requirements cannot be satisfied by this conversion rule.