Skip to Content
APIUtilsInterface: HttpResponse<T>

Interface: HttpResponse<T>

HTTP response wrapper interface Provides a consistent response structure regardless of the underlying HTTP client

Type Parameters

T

T = unknown

Properties

data

data: T

Response data (parsed JSON or raw)


ok

ok: boolean

Whether the request was successful (status 200-299)


status

status: number

HTTP status code


statusText?

optional statusText: string;

Optional status text

Last updated on