refactor the add_order_handler to extract shared logic in parent class.
make sure we return the correct http response code.