Wrap plain errors with errdefs.InvalidParameter so the API returns HTTP 400 instead of 500 for user input errors: - image export: invalid reference format - container stop/list: invalid integer for t/limit params - plugin privileges: invalid reference format - plugin enable: invalid integer for timeout param - service/task logs: missing stdout/stderr stream selection Fixes #48173 Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>