Commit 6489b3f
fix: add response.status extraction, extract inner message from JSON errors
- Add response.status to status code extraction chain
- Extract human-readable message from JSON-encoded error messages
- Add tests for response.status and plain object with response.status
- Verify inner message extraction from JSON error bodies1 parent 44babea commit 6489b3f
2 files changed
Lines changed: 40 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| 993 | + | |
993 | 994 | | |
994 | | - | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
995 | 998 | | |
996 | 999 | | |
997 | | - | |
| 1000 | + | |
998 | 1001 | | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | 1004 | | |
1002 | | - | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1003 | 1011 | | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
| 1012 | + | |
1009 | 1013 | | |
1010 | 1014 | | |
| 1015 | + | |
1011 | 1016 | | |
1012 | 1017 | | |
1013 | 1018 | | |
| |||
1035 | 1040 | | |
1036 | 1041 | | |
1037 | 1042 | | |
| 1043 | + | |
1038 | 1044 | | |
1039 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1040 | 1048 | | |
1041 | 1049 | | |
1042 | 1050 | | |
1043 | | - | |
| 1051 | + | |
1044 | 1052 | | |
1045 | 1053 | | |
1046 | 1054 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
954 | 965 | | |
955 | 966 | | |
956 | 967 | | |
957 | 968 | | |
958 | 969 | | |
959 | 970 | | |
960 | 971 | | |
| 972 | + | |
961 | 973 | | |
962 | 974 | | |
963 | 975 | | |
| |||
970 | 982 | | |
971 | 983 | | |
972 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
973 | 994 | | |
974 | 995 | | |
975 | 996 | | |
| |||
0 commit comments