How to handle protocols and error

I would like to know more about handling errors,what error code mean

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @valanthoniomarie,

So error handling is basically when you have sitatuion where your script/service will fail and you won’t to know when that happens and log the error message. When logging the error message, you’ll know what actions to take in order to resolve the issue or the reason for the failed execution.

Now, error codes in Linux are used again when something fails to execute properly. Different error code is given based on where and what made the script failed. Every error code can mean something different and it is basically a good idea to Google them each time you experience them as they are so many I doubt anyone knows them by heart.