- Change default error message to be a JSON response