| 1 | import { HttpStatus } from '@api/routes/index.router'; |
| 2 | |
| 3 | export interface MetaErrorResponse { |
| 4 | status: number; |
| 5 | error: string; |
| 6 | message: string; |
| 7 | details: { |
| 8 | whatsapp_error: string; |
| 9 | whatsapp_code: string | number; |
| 10 | error_user_title: string; |
| 11 | error_user_msg: string; |
| 12 | error_type: string; |
| 13 | error_subcode: number | null; |
| 14 | fbtrace_id: string | null; |
| 15 | context: string; |
| 16 | type: string; |
| 17 | }; |
| 18 | timestamp: string; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Creates standardized error response for Meta/WhatsApp API errors |
nothing calls this directly
no outgoing calls
no test coverage detected