response JSON instead of text when exception occur