Skip to main content
Module

x/sentry/index.mjs>spanStatusfromHttpCode

The Official Sentry Deno SDK
Go to Latest
function spanStatusfromHttpCode
import { spanStatusfromHttpCode } from "https://deno.land/x/sentry@7.92.0/index.mjs";

Converts a HTTP status code into a SpanStatusType.

Parameters

httpStatus: number

The HTTP response status code.

Returns

The span status or unknown_error.