1. A system, comprising: a computer processor; and a memory device containing a program that, when executed on the computer processor, performs an operation for generating a wrapper for an application program interface (API), comprising: receiving a usage pattern comprising a sequence of commands issued by a user application to access a data source; receiving a cache option associated with at least one command in the usage pattern, the cache option defining how the wrapper, to be generated, caches data when the user application issues the at least one command; receiving an error code associated with the at least one command, wherein the error code represents an error message issued by one of the API and the data source in response to a service disruption, wherein the wrapper is configured to retry a user application request upon identifying the error code; and generating the wrapper based on the received usage pattern, the received cache option, and the received error code.