Hi everyone,
I’m using a discreet parameter in my connector to display HTTP status codes. However, even though I’ve defined discreets for values like 200
, 400
, etc., the parameter still displays the raw value (HTTP/1.1 200
) instead of the label I want (like OK
or Bad Request
).
Here’s what I’d like to display:
-
200
→OK
-
400
,403
,404
→Bad Request
How can I fix this so the parameter shows the discreet label (e.g., OK
) instead of the raw value? Can you share an example where this worked as expected?
Thanks in advance
Hi Rachel, I suspect some other part of your connector, like the QAction that processes the responses, is writing this raw value to the parameter instead of only the code number. You can either change the part that writes the value, or change the definition of the discreets so "HTTP/1.1 200" maps to "OK".