modified comment create response to send json on error