Add JSON response to error