Update the recourse loader to support any type of response and make it extensible