HTTP Status Code to app connect name mappings

App connect allows the user to “hook” into a number of server responses as below

We can also return server responses from Server Connect

image

HOWEVER I am not clear on what codes correspond to whuich response names

Some are obvious:
Success = 200
Unauthorised = 401

The names are not clearly mappable to standard response code names as defined in the ietf registry (https://www.ietf.org/assignments/http-status-codes/http-status-codes.xml)

To save me having to write some code to return each response code problematically and trap them in app connect with a notification, anyone got a full list of the name to code mappings of these so i can use the response component to trigger these events problematically?

Events triggers on following status codes:

Success: < 400
Invalid: 400
Unauthorized: 401
Forbidden: 403
Error: 402, > 403 or when there was a Parse error

Start: triggers when request is about to start
Abort: triggers when request was aborted
Done: triggers always when request is finished

Upload and Download events are for the progress.

3 Likes

Thanks @patrick, that clarifies things but unfortunately kills my idea of manipulating responses to trigger app connect actions

If i may trouble you for a few moments of your expert mind if you have any relevant ideas.

I am working on multi-user record locking ideas basically i need to trigger a connection reload when the “lock-check” server action gains a lock on a record.

I had hoped to be able to return a status code to trigger one of the dynamic server connect actions to do a server action -> load but based on the info you have supplied I don’t think this is practical.

Can you suggest how i could trigger a server action refresh within app connect based on a return value of any kind from Server connect

My logic is:

A server action, “pulsed” by scheduler checks record to see if locked via date/time signature - working
If locked, user is informed and submit button disabled - working
If no longer locked, user gets lock and submit button activated - working

However I would like the form content server action (separate action) to refresh when new lock granted before the button is enabled so the new info is shown or obviously i would just get overwritten when the form was submitted.

Is there any way to conditionally load the form server connection based on a value returned by the server action “pulse”

Brian

Additional information can be found here too ReRun the same script