Angular Http Request Error Handling In Python