Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function getSpanStatusFromHttpCode
import { getSpanStatusFromHttpCode } from "https://deno.land/x/sentry@7.120.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.