technology.internet.http_status_codeHTTP response status code (100-599). Numeric string or integer. When inferred as VARCHAR, transforms to SMALLINT.
$ finetype infer -i "200"
→ technology.internet.http_status_codeSELECT finetype('200');
-- → 'technology.internet.http_status_code'CAST({col} AS SMALLINT)-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS SMALLINT) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'technology.internet.http_status_code';{
"$id": "https://meridian.online/schemas/technology.internet.http_status_code",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "HTTP response status code (100-599). Numeric string or integer. When inferred as VARCHAR, transforms to SMALLINT.",
"examples": [
"200",
"404",
"500",
"301"
],
"pattern": "^([1-5][0-9]{2})$",
"title": "HTTP Status Code",
"type": "string",
"x-finetype-broad-type": "VARCHAR",
"x-finetype-transform": "CAST({col} AS SMALLINT)"
}200404500301