Added support for DMCA and error code checks to ApiCall