Skip to main content
Module

x/sentry/index.d.ts>spanStatusfromHttpCode

The Official Sentry Deno SDK
Go to Latest
function spanStatusfromHttpCode
import { spanStatusfromHttpCode } from "https://deno.land/x/sentry@7.91.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.