For any HttpErrorResponse statusCode ( 400, 401, 500, 404 ) angular returning status text always 'OK' but in postman returning correct status text.