Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function getSpanStatusFromHttpCode
import { getSpanStatusFromHttpCode } from "https://deno.land/x/sentry@8.39.0-beta.0/index.mjs";

Converts a HTTP status code into a sentry status with a message.

Parameters

httpStatus: number

The HTTP response status code.

Returns

SpanStatus

The span status or unknown_error.