MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / ApiError

Interface ApiError

web/app/utils/api-error.ts:4–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2 * Shape of the error object thrown by ofetch/$fetch for failed API requests.
3 */
4export interface ApiError {
5 status?: number
6 data?: {
7 message?: string
8 data?: Record<string, string[]>
9 }
10}
11
12export function toApiError(error: unknown): ApiError {
13 if (error !== null && typeof error === 'object') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected