# Raise HTTP\_EXCEPTIONS.get(status\_code, TransportError)( elasticsearch.exceptions.TransportError: TransportError(302, '')

**URL:** <https://discuss.elastic.co/t/raise-http-exceptions-get-status-code-transporterror-elasticsearch-exceptions-transporterror-transporterror-302/322024>\
**Category:** Elasticsearch\
**Created:** [December 27, 2022, 6:20am UTC](https://discuss.elastic.co/t/raise-http-exceptions-get-status-code-transporterror-elasticsearch-exceptions-transporterror-transporterror-302/322024 "2022-12-27T06:20:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kompal](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@Kompal](https://discuss.elastic.co/u/Kompal)\
**Post date:** [December 27, 2022, 6:20am UTC](https://discuss.elastic.co/t/raise-http-exceptions-get-status-code-transporterror-elasticsearch-exceptions-transporterror-transporterror-302/322024/1 "2022-12-27T06:20:10Z")

</div>

Receiving the exception -raise HTTP\_EXCEPTIONS.get(status\_code, TransportError)(  
elasticsearch.exceptions.TransportError: TransportError(302, '') while trying to create index using python.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 2, 2023, 9:10pm UTC](https://discuss.elastic.co/t/raise-http-exceptions-get-status-code-transporterror-elasticsearch-exceptions-transporterror-transporterror-302/322024/2 "2023-01-02T21:10:12Z")

</div>

Welcome to our community! 😃

Please share more information. What does your code look like? What version of Elasticsearch are you using?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 30, 2023, 9:11pm UTC](https://discuss.elastic.co/t/raise-http-exceptions-get-status-code-transporterror-elasticsearch-exceptions-transporterror-transporterror-302/322024/3 "2023-01-30T21:11:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
