Open topic with navigation

TIBCO® Enterprise Administrator 2.4.2

# 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

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Enterprise Administrator

Copyright © 1996-2025. Cloud Software Group, Inc. All Rights Reserved.