source-code_snippets_7_py
return {
"isTransient": True,
"body": { "foo": "bar" },
};
Of course, you can combine this with previously shown properties. For example:
return {
"isTransient": True,
"status": 201,
"body": { "foo": "bar" },
"headers": {
"X-Custom-Header": "I am a custom header",
},
};