content-type application/json の API 呼び出し時の悪い CSRF エラーメッセージの改善

API requests with the Content-Type as “application/json” often receive an unhelpful message like “BAD CSRF”, so we should improve the error messaging so that it provides more details as to why they are receiving this error message.