Skip to main content
All four async SDK methods throw a FramalabError on non-2xx responses.

FramalabError

Basic pattern

error-handling.ts

Error codes

Network errors

If fetch itself fails (DNS, timeout, offline), the SDK re-throws the native TypeError — not a FramalabError. Handle both:
network.ts

Next.js error boundary

app/gallery/error.tsx