Technical requirements
All of the APIs in this chapter operate over HTTP. An HTTP response code is returned, regardless of whether the request was successful or not. If you are not familiar with HTTP response codes or just need to brush up on them, you can review them here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status. You will see plenty of HTTP response codes when working with the APIs in Drupal, so it is a good idea to review them. You can find the full code used in this chapter on GitHub: https://github.com/PacktPublishing/Drupal-10-Development-Cookbook/tree/main/chp12