Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix return overrides to override error bodies (#2815)
The previous PR #2731 contained an error, and always forced return custom error: which brakes backward compatibility. In this PR I added tests covering all return overrides functionality and normalized its behavior for JSVM and Python. Additionally, it use reverse logic now, and plugin needs set `ReturnOverrides.OverrideError` (JS) or `return_overrides.override_error` (Python) to `true` in order to override the body of response. Additionally, I renamed `response_error` field to `response_body`, because it makes way more sense. The old field still can be set for backward compatibility. #2693
- Loading branch information