LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
carlod80

Allow text description of custom HTTP Response code

Status: Declined

Declined for reasons listed in the thread.

The Set HTTP Response Code VI allows to insert a custom HTTP response code, but does not allow to insert a custom text description of that code.

It would be useful to have a string input that allows to insert such description.

2 Comments
AristosQueue (NI)
NI Employee (retired)

We passed your request along to the network communications team. They are rejecting this idea for the following reason:

 

The text description for a status code (the "reason phrase") is not intended to convey a semantic meaning (i.e. details about what happened) other than being a human-readable version of the status code number. If the user wants to return some meaningful description of why a status code is being returned, the appropriate place to do that is in the response body or a header.

 

From a technical point of view, many HTTP clients don't provide access to the reason phrase anyway (at least not easily), and many web servers don't provide a way to change them.

 

Darren
Proven Zealot
Status changed to: Declined

Declined for reasons listed in the thread.