@iain.delaney Thanks very much for your question!
You raise a good point, but do keep in mind that this is an introductory tutorial on using Alamofire for implementing networking functionality in iOS. For this reason, such a tutorial would focus on getting the user up and running in working with this popular, third party library as quickly as possible. By doing so, the user is introduced to the fundamentals of using this API very quickly to ensure they understand the core concepts of networking using Alamofire with minimal effort.
You will also notice that in this tutorial, other concepts are also introduced as well, such as JSON parsing using the Decodable protocol. Because our tutorials need to be of a certain length in order to avoid overwhelming the reader, certain topics unfortunately need to be edited out. If other topics like error handling were also included, then this tutorial would be even longer.
Because this tutorial is entitled, “Getting Started”, it would be fair to say that error handling will be discussed in a follow up tutorial in the near future.
I hope this helps!
All the best.