# File lib/fog/compute/ecloud.rb, line 835 def response(params = {}) body = params[:body] headers = { "Content-Type" => "application/xml" }.merge(params[:headers] || {}) status = params[:status] || 200 response = Excon::Response.new(:body => body, :headers => headers, :status => status) if params.key?(:expects) && ![*params[:expects]].include?(response.status) e = Excon::Errors::NotFound.new("Expected([200]) <=> Actual(404 Not Found)", "404", response) raise ServiceError.slurp(e) else response end end