Skip to main content
Go to Latest
function getSpanStatusFromHttpCode
import { getSpanStatusFromHttpCode } from "https://deno.land/x/sentry@8.0.0-beta.4/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.