On CloudFoundry v1 each account is allowed a total memory usage of 2048mb across all deployed active applications.
If you already have some applications deployed and try to add one more where it will push the total memory above 2048 then you will see this error.
The solution is to reduce the number of applications deployed so that you have enough free memory in your account to deploy your application.