Returning 200 Status Code for Webhook

I was getting a 500 error code because when my webhook was getting triggered, the code was looking for a view or file to render when the processing was completed.

I tried: return 200

in my controller, but that didn’t work for me.

Instead the answer was:

head :ok