Reduce max file size to 1MB.
Implemented error handling for 404, 403 and 500 HTTP codes.
Merged unlink() and rmdir() into one recursive function that does not throw errors when an object does not exist.