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

T

Response data (parsed JSON or raw)


ok

unknown

Whether the request was successful (status 200-299)


status

HTTP status code


statusText?

Optional status text

Last updated on