Override response and add header to response

In case of rate limiting, Mixer returns a RESOURCE_EXHAUSTED message to the Envoy proxy, and Envoy returns status HTTP 429 to the caller. Can any one help, how should i override the message generally i am expecting JSON error message . how to add header “retry-after” to the response"