I am working on a system that provides a REST API. My system requires external API calls to complete some requests. These APIs sometimes fail (with internal server errors), and these failures prevent my system from successfully shutting down.
What is the best HTTP status code my system should return? I would like to distinguish failures of external systems from internal failures in my system, so I am not particularly pleased with the return of 500.
source share