This is a great article by Rashid on handling API errors! https://rashidaljohani.github.io/API-error-handling-why-should-you-care/

https://rashidaljohani.github.io/images/blogs/API-error-handling-why-should-you-care/banner.png