From 5685f9ac66ef4f9cf9bca8abd490964e1ce566f4 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 22 Mar 2023 20:59:19 -0700 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d90156..8180a16 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ $ curl --request GET \ --header 'accept: application/json' ``` -Example response: +Example 200 response: ```json { @@ -31,6 +31,14 @@ Example response: } ``` +Example 400 response: + +```json +{ + "error": "There was an error with NewsAPI. Please try again later." +} +``` + ## Why? For fun 🤡...and to ramp up on TypeScript/Node/ExpressJS. This API is bascially a thin wrapper around [NewsAPI](https://newsapi.org/), and deployed using DigitalOceans App Platform.