Exceptions and Implicit HTTP Status Codes
When your agent code throws an exception, the agent library catches it. The library implicitly maps certain exception classes to corresponding status codes.
Exception & Usage | HTTP Status Code |
---|---|
TeaIllegalArgumentException
For example, a numeric value to an operation is out of range. |
400 |
TeaIllegalStateException
For example, the operation attempts to stop a process that is not running. |
409 |
TeaException
Throw this exception when an operation cannot complete for other reasons. |
550 |
javax.ws.rs.core.Response.Status.NOT_FOUND
The agent library throws this exception when the GUI passes an object key for which a referent no longer exists in the agent. |
404 |
javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR
The agent library throws this exception when your agent throws any unexpected exception (for example, a runtime exception). |
500 |
Copyright © Cloud Software Group, Inc. All rights reserved.