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,
The "value" tag in the discreet element expects an exact match.
As the value is "HTTP/1.1 200" and not just "200" DataMiner cannot find a match and does not know what to display. As a solution, it displays the "raw" value.
To resolve this, change your "value" in the discreet tag from "200" to "HTTP/1.1 200"
Do the same for 400, 403 & 404.
I think this should resolve your issue.
Best of luck!
Kind regards,