Commit 3a1a8b7
kai-agent-free
fix: address review feedback - handleUnsupportedRequest centralization and error cause preservation
- Convert handleUnsupportedRequest() to use createJsonErrorResponse() for consistency
- Add optional 'cause' parameter to createJsonErrorResponse() to preserve error fidelity
- Pass caught errors as 'cause' in catch blocks to maintain original error information
- Add test for onerror callback on unsupported HTTP methods1 parent 15514e5 commit 3a1a8b7
2 files changed
Lines changed: 15 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
604 | 590 | | |
605 | 591 | | |
606 | 592 | | |
| |||
805 | 791 | | |
806 | 792 | | |
807 | 793 | | |
808 | | - | |
| 794 | + | |
809 | 795 | | |
810 | 796 | | |
811 | 797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
847 | 856 | | |
848 | 857 | | |
0 commit comments