Testing and coding for platform quotas and limits

Hi all,

Are there any guidelines on how to test and code for platform quotas and limits? ie, there are no quotas/limits in development and there is no documentation as to what would happen if we hit a quota/limit in production. Do we get an error? What is the structure of that error?

Is there any documentation on this?

Thanks,