Skip to content

Response templating off

A refusal to make the values of a project’s generated responses dynamic, because dynamic values are template expressions and the project does not render them.

Field Value
type https://mockhub.dev/problems/response-templating-off
Status 409

The project’s response templating is off, so a mock holding an expression such as {{ randomInt lower=1 upper=6 }} would send it as text. Nothing was changed. The review of what would change still answers, and says that templating is off.

Always 409.

From applying Vary response values, as a JSON run or a streamed one. Undoing the latest batch and returning to fixed values do not need templating.

When detail
The project’s templating is off Making values dynamic writes response templates, and response templating is off for this project. Turn it on in the project settings first.

This type carries no extension members.

{
"type": "https://mockhub.dev/problems/response-templating-off",
"title": "Response templating is off",
"status": 409,
"detail": "Making values dynamic writes response templates, and response templating is off for this project. Turn it on in the project settings first."
}

Turn on Response templating in the project’s Settings, which needs the Admin role, then review and apply again. The switch changes how every mock in the project reads its response, so check mocks whose bodies contain {{ first; a mock set to Serve as written is sent as written either way. See Set a project’s logging and templating.

Report a problem with this page