Document toolboxDocument toolbox

HTTP Status Description (httpstatusdescription)

Description

Given a field containing HTTP status codes, this operation creates a new column containing the corresponding HTTP status descriptions.

How does it work in the search window?

Select Create column in the search window toolbar, then select the HTTP Status Description operation. Only one argument is required

Argument

Data type

Argument

Data type

Status code mandatory

Integer

The new column's data type is string. 

Example

We want to get the descriptions associated with the HTTP status codes in the statusCode column, so we click Create column and select the HTTP Status Description operation. Select statusCode as the argument and assign a name to the new column - let's call it statusCodeDesc.

Click Create column and you will see the following result:

How does it work in LINQ?

Use the operator select... as...  and add the operation syntax to create the new column. 

  • httpstatusdescription(integer)

Examples

Copy the following LINQ script and try the above example on the demo.ecommerce.data table. 

from demo.ecommerce.data select httpstatusdescription(statusCode) as StatusCodeDescription