# Handling status codes in get\_url module

**URL:** <https://forum.ansible.com/t/handling-status-codes-in-get-url-module/21639>\
**Category:** Ansible Developer\
**Created:** [June 2, 2016, 7:58am UTC](https://forum.ansible.com/t/handling-status-codes-in-get-url-module/21639 "2016-06-02T07:58:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobias\_Carlsson](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tobias\_Carlsson](https://forum.ansible.com/u/Tobias_Carlsson)\
**Post date:** [June 2, 2016, 7:58am UTC](https://forum.ansible.com/t/handling-status-codes-in-get-url-module/21639/1 "2016-06-02T07:58:41Z")

</div>

Code to talk about  
[https://github.com/tecarlsson/ansible-modules-core/commit/8fb54c65d545417d515b35ecea1c5e63f0882eed](https://github.com/tecarlsson/ansible-modules-core/commit/8fb54c65d545417d515b35ecea1c5e63f0882eed)

The implementation is not superb, but it shows which status codes I would like to talk about. 🙂

The status codes in this code is as far as I know http status codes.  
So I guess that they only will exist when the connection type is http/https.

Is that correct?

/Tobias
