()
| 34 | } |
| 35 | |
| 36 | toJSON(): Record<string, unknown> { |
| 37 | return { |
| 38 | type: this.type, |
| 39 | message: this.message, |
| 40 | statusCode: this.statusCode, |
| 41 | requestId: this.requestId, |
| 42 | details: this.details, |
| 43 | }; |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | export function toProxyError(error: unknown, fallbackStatusCode = 500): ProxyError { |
nothing calls this directly
no outgoing calls
no test coverage detected