pkg: authorization: add Err to tweak response status code Upstream-commit: 5baa93c04ef4a195df397914baf0a980c93d1271 Component: engine