Hi, I am trying to integrate webhooks with Ruby on Rails.
These are my logs

So as it can be seen, I am returning 200 for matching requests and 401 for not matching requests but still on Xero side, it says, Intent to receive is required and Response to incorrectly signed payload not 401.
My ruby code for returning statuses is this:
def xero_webhooks
response = Xero::WebhookManager.call({
read_body_request: request.body.read,
request: request,
params: params
})
if response.success?
head :ok
else
head :unauthorized
end
end