fix: moved exception handling for requests into module function and added exception handing for 409 errors