Garment.id
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
Home
Core APITenant APISupport CenterChangelog
Home
Core APITenant APISupport CenterChangelog
Github
Instagram
|
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Home
  • Introduction
  • 01 - Project Structure
  • 02 - Context Boundaries
  • 03 - Central Auth Runtime
  • 04 - Central Billing
  • 05 - Tenant Runtime
  • 06 - FE Integration Contracts
  • 07 - Security, Middleware, and RLS
  • 08 - Events, Jobs, Listeners, Notifications, Observers
  • 09 - Testing and Quality Gates
  • 10 - Operations Runbook
  • 11 - Architecture Decisions (ADR Ringkas)
  • 12 - API Endpoint Catalog (v1)
  • 13 - Class Catalog by Context
  • 14 - Feature Development Playbook
  • 15 - Migration and Model Conventions
  • 16 - Service, Support, and Trait Contracts
  • 17 - Auth Business Scenarios and Decision Tree
  • 18 - Config Reference and Impact
  • 19 - Migration and Model Cookbook
  • 20 - Billing and Provisioning Business Flows
  • 21 - FE Error Handling Matrix
  • 22 - Incident Playbooks
  • 23 - Data Ownership Matrix
  • 24 - Documentation Governance and Changelog
  • 25 - Tenant Authorization Backend Guide
Home
Core APITenant APISupport CenterChangelog
Home
Core APITenant APISupport CenterChangelog
Github
Instagram
|
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇺🇸 English
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Home

21 - FE Error Handling Matrix

Dokumen ini memberi mapping error backend ke aksi FE yang konsisten.

Global Rules#

Selalu baca code dari envelope API, bukan hanya HTTP status.
Simpan request_id untuk tracing issue ke backend logs.

Error Matrix#

HTTPTypical Code/ScenarioFE Action
400bad request payloadtampilkan general error + form highlight jika relevan
401access token invalid/expiredjalankan refresh flow
401refresh gagalclear session lokal + redirect login
403tenant context mismatchclear tenant context + minta pilih tenant ulang
403missing abilitytampilkan forbidden/unauthorized module
403step-up/password confirmation requiredtrigger confirm flow lalu retry action
404resource not foundtampilkan empty/not found page
422validation errormap errors ke field-level message
429throttledtampilkan retry info + backoff
500server errortampilkan fallback error + support message
503service unavailabletampilkan temporary outage + retry

Flow - Refresh Handling#

Flow - Tenant Context Mismatch#

Diubah pada 2026-03-03 22:25:30
Sebelumnya
20 - Billing and Provisioning Business Flows
Berikutnya
22 - Incident Playbooks
Built with