Added the request to the RestResponse instance when building an error response.