Improve logging and error responses in badge issuing webhooks

Some small changes to improve logging and fix some incorrect response codes in the claim notification webhook.