Here's an API, it can give two errors. Either 404, or 401. If the error is 404, show the user 'page not found' and if the error is 401, show the user 'you are not logged in'.
var URL = "https://jsonplaceholder.typicode.com/dummyUsers"
| Name | Name | Last commit date | ||
|---|---|---|---|---|