Skip to content

Commit 356d6a5

Browse files
committed
Fix response status not mapped for error handling
1 parent dcc3918 commit 356d6a5

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)