Angular Http Get Error Handling In Python