Skip to main content

Chat

readFailure

Whether a failed read's HTTP status is the service's ("failed": no answer, signed out, throttled, timed out or failing, so every read waits) or this person's ("missing": the service refused them alone, so they are kept as missing and no one waits).

import { readFailure } from "@/lib/ouro/people-cache";

Example

if (!response.ok) return [id, readFailure(response.status)];

Parameters

status
Type: number | undefined

Returns

"missing" | "failed"