Skip to content

Handling multiple response types #6232

Closed Answered by pacmano1
elavy-harris asked this question in Q&A
Discussion options

You must be logged in to vote

There are few things you need to do in a use case like this (ignoring your code for now):

  1. check the response code from the http call itself (for example the server can be down)
  2. if a 200, just serialize the message in try...catch
  3. Analyze the message (for example it could in fact be entirely blank)
  4. If all steps passed collect your ACK.
  5. Obviously set the response status like you are.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@pacmano1
Comment options

@elavy-harris
Comment options

@pacmano1
Comment options

@pacmano1
Comment options

@elavy-harris
Comment options

Answer selected by pacmano1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants