Skip to main content
Go to Latest
function getSpanStatusFromHttpCode
import { getSpanStatusFromHttpCode } from "https://deno.land/x/sentry@7.109.0/index.d.ts";

Converts a HTTP status code into a SpanStatusType.

Parameters

httpStatus: number

The HTTP response status code.

Returns

The span status or unknown_error.