- DOG API dog.ceo/api https://dog.ceo/dog-api/
What would be the 3-digit server response code be if the server experiences an internal server error?
Base URL https://scrimba.com/api
The try/catch catches exceptions and errors that occur during the execution of the code, including network errors and other unexpected issues.
Checks the success of the HTTP response status, which might not throw an error but still indicates a failure.