Add the `json_errors` decorator.