Skip to content

Commit f885d44

Browse files
authored
Merge pull request #34 from acjh/patch-1
Fix response status not mapped for error handling
2 parents dcc3918 + 356d6a5 commit f885d44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/abpHttpInterceptor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ export class AbpHttpInterceptor implements HttpInterceptor {
344344
const errorBody = (json == "" || json == "null") ? {}: JSON.parse(json);
345345
const errorResponse = new HttpResponse({
346346
headers: error.headers,
347+
status: error.status,
347348
body: errorBody
348349
});
349350

0 commit comments

Comments
 (0)