If the error comes in a regular shell then the problem is that your quota or storage memory exceeded.
If you are trying to create your own shell then the problem may be in your program.