                   response=response,
                )
                returned_value = listener.run_ack_function(request=request, response=response)
                if isinstance(returned_value, BoltResponse):
                    response = returned_value
                if ack.response is None and listener.auto_acknowledgement:
                    ack()  # automatic ack() call if the call is not yet done
            except Exception as e:
                # The default response status code is 500 in this 