{"info":{"_postman_id":"de6682f7-a4f6-4a9c-9aba-f431afc9bf05","name":"Error Handling In Express","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"12211908","collectionId":"de6682f7-a4f6-4a9c-9aba-f431afc9bf05","publishedId":"UzQsw7WR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-13T20:28:49.000Z"},"item":[{"name":"Fetch all posts","id":"bab63abe-6d71-40ef-9964-5d8b70e60d26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://express-error-handling-api.herokuapp.com/","description":"<p><strong>Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\n        \"next_page\": null,\n        \"previous_page\": null,\n        \"count\": 2\n    },\n    \"data\": [\n        {\n            \"status\": \"published\",\n            \"created\": \"2022-07-07T05:09:46.550597Z\",\n            \"updated\": \"2022-07-07T05:09:46.550621Z\",\n            \"published\": \"2022-07-07T05:09:46.550191Z\",\n            \"title\": \"This is a blog post\",\n            \"slug\": \"this-is-a-blog-post\",\n            \"body\": \"ButterI am so hungry!\",\n            \"summary\": \"This is a blog post summary.\",\n            \"seo_title\": \"This is a blog post\",\n            \"meta_description\": \"This is a blog post to test the API.\",\n            \"featured_image_alt\": \"Featured image alt text example.\",\n            \"url\": \"this-is-a-blog-post\",\n            \"featured_image\": \"https://cdn.buttercms.com/nqxlxNCSZg9fuvk1Fmpw\",\n            \"author\": {\n                \"bio\": \"\",\n                \"slug\": \"melvin-kosisochukwu\",\n                \"email\": \"melvinnnamani@gmail.com\",\n                \"title\": \"\",\n                \"last_name\": \"Kosisochukwu\",\n                \"first_name\": \"Melvin\",\n                \"facebook_url\": \"\",\n                \"linkedin_url\": \"\",\n                \"instagram_url\": \"\",\n                \"pinterest_url\": \"\",\n                \"profile_image\": \"https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/33c69f9d-c100-4f8d-a19d-f7e441bd046b\",\n                \"twitter_handle\": \"\"\n            },\n            \"tags\": [\n                {\n                    \"name\": \"Butter\",\n                    \"slug\": \"butter\"\n                },\n                {\n                    \"name\": \"Really Good Recipes\",\n                    \"slug\": \"really-good-recipes\"\n                },\n                {\n                    \"name\": \"Sushi\",\n                    \"slug\": \"sushi\"\n                }\n            ],\n            \"categories\": [\n                {\n                    \"name\": \"Meals\",\n                    \"slug\": \"meals\"\n                },\n                {\n                    \"name\": \"Recipes\",\n                    \"slug\": \"recipes\"\n                }\n            ]\n        },\n}\n</code></pre>\n","urlObject":{"path":[""],"host":["https://express-error-handling-api.herokuapp.com"],"query":[],"variable":[]}},"response":[{"id":"12e1073f-8cb3-42b7-a825-fdebe91cfdea","name":"Fetch all posts","originalRequest":{"method":"GET","header":[],"url":"https://express-error-handling-api.herokuapp.com/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3214"},{"key":"Etag","value":"W/\"c8e-et3X79M1RygKi72mANFDea/tycM\""},{"key":"Date","value":"Fri, 15 Jul 2022 09:10:32 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"next_page\": null,\n        \"previous_page\": null,\n        \"count\": 3\n    },\n    \"data\": [\n        {\n            \"status\": \"published\",\n            \"created\": \"2022-07-13T20:26:39.383586Z\",\n            \"updated\": \"2022-07-13T20:26:39.383607Z\",\n            \"published\": \"2022-07-13T20:26:39.383247Z\",\n            \"title\": \"This is a blog post\",\n            \"slug\": \"this-is-a-new-blog-post\",\n            \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n            \"summary\": \"This is a blog post summary.\",\n            \"seo_title\": \"This is a blog post\",\n            \"meta_description\": \"This is a blog post to test the API.\",\n            \"featured_image_alt\": \"Featured image alt text example.\",\n            \"url\": \"this-is-a-new-blog-post\",\n            \"featured_image\": \"https://cdn.buttercms.com/KGm8N4HqQYKjeciDQ7JG\",\n            \"author\": {\n                \"bio\": \"\",\n                \"slug\": \"melvin-kosisochukwu\",\n                \"email\": \"melvinnnamani@gmail.com\",\n                \"title\": \"\",\n                \"last_name\": \"Kosisochukwu\",\n                \"first_name\": \"Melvin\",\n                \"facebook_url\": \"\",\n                \"linkedin_url\": \"\",\n                \"instagram_url\": \"\",\n                \"pinterest_url\": \"\",\n                \"profile_image\": \"https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/33c69f9d-c100-4f8d-a19d-f7e441bd046b\",\n                \"twitter_handle\": \"\"\n            },\n            \"tags\": [\n                {\n                    \"name\": \"Butter\",\n                    \"slug\": \"butter\"\n                },\n                {\n                    \"name\": \"Really Good Recipes\",\n                    \"slug\": \"really-good-recipes\"\n                },\n                {\n                    \"name\": \"Sushi\",\n                    \"slug\": \"sushi\"\n                }\n            ],\n            \"categories\": [\n                {\n                    \"name\": \"Meals\",\n                    \"slug\": \"meals\"\n                },\n                {\n                    \"name\": \"Recipes\",\n                    \"slug\": \"recipes\"\n                }\n            ]\n        },\n        {\n            \"status\": \"published\",\n            \"created\": \"2022-07-07T05:09:46.550597Z\",\n            \"updated\": \"2022-07-13T20:26:11.043274Z\",\n            \"published\": \"2022-07-07T05:09:46.550191Z\",\n            \"title\": \"This is a blog post\",\n            \"slug\": \"this-is-a-blog-post\",\n            \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n            \"summary\": \"This is a blog post summary.\",\n            \"seo_title\": \"This is a blog post\",\n            \"meta_description\": \"This is a blog post to test the API.\",\n            \"featured_image_alt\": \"Featured image alt text example.\",\n            \"url\": \"this-is-a-blog-post\",\n            \"featured_image\": \"https://cdn.buttercms.com/nqxlxNCSZg9fuvk1Fmpw\",\n            \"author\": {\n                \"bio\": \"\",\n                \"slug\": \"melvin-kosisochukwu\",\n                \"email\": \"melvinnnamani@gmail.com\",\n                \"title\": \"\",\n                \"last_name\": \"Kosisochukwu\",\n                \"first_name\": \"Melvin\",\n                \"facebook_url\": \"\",\n                \"linkedin_url\": \"\",\n                \"instagram_url\": \"\",\n                \"pinterest_url\": \"\",\n                \"profile_image\": \"https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/33c69f9d-c100-4f8d-a19d-f7e441bd046b\",\n                \"twitter_handle\": \"\"\n            },\n            \"tags\": [\n                {\n                    \"name\": \"Butter\",\n                    \"slug\": \"butter\"\n                },\n                {\n                    \"name\": \"Really Good Recipes\",\n                    \"slug\": \"really-good-recipes\"\n                },\n                {\n                    \"name\": \"Sushi\",\n                    \"slug\": \"sushi\"\n                }\n            ],\n            \"categories\": [\n                {\n                    \"name\": \"Recipes\",\n                    \"slug\": \"recipes\"\n                }\n            ]\n        },\n        {\n            \"status\": \"published\",\n            \"created\": \"2022-06-16T21:53:07.380393Z\",\n            \"updated\": \"2022-07-13T13:34:15.022992Z\",\n            \"published\": \"2022-06-16T21:53:07.379906Z\",\n            \"title\": \"Example Post\",\n            \"slug\": \"example-post\",\n            \"body\": \"<h1> updated body<h1>\",\n            \"summary\": \"This is an example blog post. Pretty neat huh?\",\n            \"seo_title\": \"Example Post SEO Optimized Title\",\n            \"meta_description\": \"This is our example blog posts SEO optimized meta description.\",\n            \"featured_image_alt\": \"\",\n            \"url\": \"example-post\",\n            \"featured_image\": \"https://cdn.buttercms.com/q19sIvkYQQyVErfqlZk5\",\n            \"author\": {\n                \"bio\": \"\",\n                \"slug\": \"melvin-kosisochukwu\",\n                \"email\": \"melvinnnamani@gmail.com\",\n                \"title\": \"\",\n                \"last_name\": \"Kosisochukwu\",\n                \"first_name\": \"Melvin\",\n                \"facebook_url\": \"\",\n                \"linkedin_url\": \"\",\n                \"instagram_url\": \"\",\n                \"pinterest_url\": \"\",\n                \"profile_image\": \"https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/33c69f9d-c100-4f8d-a19d-f7e441bd046b\",\n                \"twitter_handle\": \"\"\n            },\n            \"tags\": [\n                {\n                    \"name\": \"Example Tag\",\n                    \"slug\": \"example-tag\"\n                }\n            ],\n            \"categories\": [\n                {\n                    \"name\": \"Example Category\",\n                    \"slug\": \"example-category\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"bab63abe-6d71-40ef-9964-5d8b70e60d26"},{"name":"Fetch one posts","id":"3dc591d1-a7c1-4047-bf38-d3c40588f173","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://express-error-handling-api.herokuapp.com/this-is-a-blog-post","description":"<p><strong>Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"meta\": {\n        \"next_post\": null,\n        \"previous_post\": {\n            \"slug\": \"example-post\",\n            \"title\": \"Example Post\",\n            \"featured_image\": \"https://cdn.buttercms.com/q19sIvkYQQyVErfqlZk5\"\n        }\n    },\n    \"data\": {\n        \"created\": \"2022-07-07T05:09:46.550597Z\",\n        \"published\": \"2022-07-07T05:09:46.550191Z\",\n        \"url\": \"this-is-a-blog-post\",\n        \"slug\": \"this-is-a-blog-post\",\n        \"featured_image\": \"https://cdn.buttercms.com/nqxlxNCSZg9fuvk1Fmpw\",\n        \"featured_image_alt\": \"Featured image alt text example.\",\n        \"author\": {\n            \"first_name\": \"Melvin\",\n            \"last_name\": \"Kosisochukwu\",\n            \"email\": \"melvinnnamani@gmail.com\",\n            \"slug\": \"melvin-kosisochukwu\",\n            \"bio\": \"\",\n            \"title\": \"\",\n            \"linkedin_url\": \"\",\n            \"facebook_url\": \"\",\n            \"instagram_url\": \"\",\n            \"pinterest_url\": \"\",\n            \"twitter_handle\": \"\",\n            \"profile_image\": \"https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/33c69f9d-c100-4f8d-a19d-f7e441bd046b\"\n        },\n        \"tags\": [\n            {\n                \"name\": \"Butter\",\n                \"slug\": \"butter\"\n            },\n            {\n                \"name\": \"Really Good Recipes\",\n                \"slug\": \"really-good-recipes\"\n            },\n            {\n                \"name\": \"Sushi\",\n                \"slug\": \"sushi\"\n            }\n        ],\n        \"categories\": [\n            {\n                \"name\": \"Meals\",\n                \"slug\": \"meals\"\n            },\n            {\n                \"name\": \"Recipes\",\n                \"slug\": \"recipes\"\n            }\n        ],\n        \"title\": \"This is a blog post\",\n        \"body\": \"ButterI am so hungry!\",\n        \"summary\": \"This is a blog post summary.\",\n        \"updated\": \"2022-07-07T05:09:46.550621Z\",\n        \"seo_title\": \"This is a blog post\",\n        \"meta_description\": \"This is a blog post to test the API.\",\n        \"status\": \"published\"\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["this-is-a-blog-post"],"host":["https://express-error-handling-api.herokuapp.com"],"query":[],"variable":[]}},"response":[{"id":"2ba3f873-35ce-4b7a-ba51-28472c543d44","name":"Fetch one posts","originalRequest":{"method":"GET","header":[],"url":"https://express-error-handling-api.herokuapp.com/this-is-a-blog-post"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1350"},{"key":"Etag","value":"W/\"546-72LBVN+Xrril+/OS0520vhW68ps\""},{"key":"Date","value":"Fri, 15 Jul 2022 09:11:08 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"meta\": {\n        \"next_post\": {\n            \"slug\": \"this-is-a-new-blog-post\",\n            \"title\": \"This is a blog post\",\n            \"featured_image\": \"https://cdn.buttercms.com/KGm8N4HqQYKjeciDQ7JG\"\n        },\n        \"previous_post\": {\n            \"slug\": \"example-post\",\n            \"title\": \"Example Post\",\n            \"featured_image\": \"https://cdn.buttercms.com/q19sIvkYQQyVErfqlZk5\"\n        }\n    },\n    \"data\": {\n        \"created\": \"2022-07-07T05:09:46.550597Z\",\n        \"published\": \"2022-07-07T05:09:46.550191Z\",\n        \"url\": \"this-is-a-blog-post\",\n        \"slug\": \"this-is-a-blog-post\",\n        \"featured_image\": \"https://cdn.buttercms.com/nqxlxNCSZg9fuvk1Fmpw\",\n        \"featured_image_alt\": \"Featured image alt text example.\",\n        \"author\": {\n            \"first_name\": \"Melvin\",\n            \"last_name\": \"Kosisochukwu\",\n            \"email\": \"melvinnnamani@gmail.com\",\n            \"slug\": \"melvin-kosisochukwu\",\n            \"bio\": \"\",\n            \"title\": \"\",\n            \"linkedin_url\": \"\",\n            \"facebook_url\": \"\",\n            \"instagram_url\": \"\",\n            \"pinterest_url\": \"\",\n            \"twitter_handle\": \"\",\n            \"profile_image\": \"https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/33c69f9d-c100-4f8d-a19d-f7e441bd046b\"\n        },\n        \"tags\": [\n            {\n                \"name\": \"Butter\",\n                \"slug\": \"butter\"\n            },\n            {\n                \"name\": \"Really Good Recipes\",\n                \"slug\": \"really-good-recipes\"\n            },\n            {\n                \"name\": \"Sushi\",\n                \"slug\": \"sushi\"\n            }\n        ],\n        \"categories\": [\n            {\n                \"name\": \"Recipes\",\n                \"slug\": \"recipes\"\n            }\n        ],\n        \"title\": \"This is a blog post\",\n        \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n        \"summary\": \"This is a blog post summary.\",\n        \"updated\": \"2022-07-13T20:26:11.043274Z\",\n        \"seo_title\": \"This is a blog post\",\n        \"meta_description\": \"This is a blog post to test the API.\",\n        \"status\": \"published\"\n    }\n}"}],"_postman_id":"3dc591d1-a7c1-4047-bf38-d3c40588f173"},{"name":"Create new post","id":"7e2188d0-31cb-4023-9b79-d6346c9059b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"author\": {\n      \"email\": \"melvinnnamani@gmail.com\"\n    },\n    \"categories\": [\"Recipes\", \"Meals\"],\n    \"tags\": [\"Butter\", \"Sushi\", \"Really Good Recipes\"],\n    \"featured_image\": \"https://farm1.staticflickr.com/836/42903355654_8faa21171a_m_d.jpg\",\n    \"featured_image_alt\": \"Featured image alt text example.\",\n    \"slug\": \"this-is-a-blog-post\",\n    \"title\": \"This is a blog post\",\n    \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n    \"summary\": \"This is a blog post summary.\",\n    \"seo_title\": \"This is a blog post\",\n    \"meta_description\": \"This is a blog post to test the API.\",\n    \"status\": \"published\"\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.com/","urlObject":{"path":[""],"host":["https://express-error-handling-api.herokuapp.com"],"query":[],"variable":[]}},"response":[{"id":"2941d342-21c9-42ac-aff6-4a8f1fcfa655","name":"Create new post","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"author\": {\n      \"email\": \"melvinnnamani@gmail.com\"\n    },\n    \"categories\": [\"Recipes\", \"Meals\"],\n    \"tags\": [\"Butter\", \"Sushi\", \"Really Good Recipes\"],\n    \"featured_image\": \"https://farm1.staticflickr.com/836/42903355654_8faa21171a_m_d.jpg\",\n    \"featured_image_alt\": \"Featured image alt text example.\",\n    \"slug\": \"this-is-test-blog-post\",\n    \"title\": \"This is a blog post\",\n    \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n    \"summary\": \"This is a blog post summary.\",\n    \"seo_title\": \"This is a blog post\",\n    \"meta_description\": \"This is a blog post to test the API.\",\n    \"status\": \"published\"\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.com/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"Etag","value":"W/\"3a-nRFHBlGTo2s8gEBu8Tgnp1DfzVA\""},{"key":"Date","value":"Fri, 15 Jul 2022 09:11:37 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Post created successfully\"\n}"}],"_postman_id":"7e2188d0-31cb-4023-9b79-d6346c9059b3"},{"name":"Update created post","id":"909cf4db-13f0-47f8-a14a-1b6583a24e1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"categories\": [\"Recipes\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.comthis-is-a-blog-post","urlObject":{"host":["https://express-error-handling-api.herokuapp.comthis-is-a-blog-post"],"query":[],"variable":[]}},"response":[{"id":"324e2be0-c7a6-4068-9196-3a609e34b921","name":"Update created post","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"categories\": [\"Recipes\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.com/this-is-a-blog-post"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"Etag","value":"W/\"3a-nrMyTmPXCRY/2g7U9D/P7jKyL/o\""},{"key":"Date","value":"Fri, 15 Jul 2022 09:11:57 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Post updated successfully\"\n}"}],"_postman_id":"909cf4db-13f0-47f8-a14a-1b6583a24e1a"},{"name":"Create new post with wrong author","id":"ebe134d2-4eee-451b-a510-548cff8f82b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"author\": {\n      \"email\": \"wrongauthor@gmail.com\"\n    },\n    \"categories\": [\"Recipes\", \"Meals\"],\n    \"tags\": [\"Butter\", \"Sushi\", \"Really Good Recipes\"],\n    \"featured_image\": \"https://farm1.staticflickr.com/836/42903355654_8faa21171a_m_d.jpg\",\n    \"featured_image_alt\": \"Featured image alt text example.\",\n    \"slug\": \"this-is-a-blog-post\",\n    \"title\": \"This is a blog post\",\n    \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n    \"summary\": \"This is a blog post summary.\",\n    \"seo_title\": \"This is a blog post\",\n    \"meta_description\": \"This is a blog post to test the API.\",\n    \"status\": \"published\"\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.com/","urlObject":{"path":[""],"host":["https://express-error-handling-api.herokuapp.com"],"query":[],"variable":[]}},"response":[{"id":"1ade69b1-13b6-4dea-b9ec-54b326e4aaeb","name":"Create new post with wrong author","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"author\": {\n      \"email\": \"wrongauthor@gmail.com\"\n    },\n    \"categories\": [\"Recipes\", \"Meals\"],\n    \"tags\": [\"Butter\", \"Sushi\", \"Really Good Recipes\"],\n    \"featured_image\": \"https://farm1.staticflickr.com/836/42903355654_8faa21171a_m_d.jpg\",\n    \"featured_image_alt\": \"Featured image alt text example.\",\n    \"slug\": \"this-is-a-blog-post\",\n    \"title\": \"This is a blog post\",\n    \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n    \"summary\": \"This is a blog post summary.\",\n    \"seo_title\": \"This is a blog post\",\n    \"meta_description\": \"This is a blog post to test the API.\",\n    \"status\": \"published\"\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.com/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"89"},{"key":"Etag","value":"W/\"59-5Vh37weXBzPXq34cNmcCftbYuyA\""},{"key":"Date","value":"Fri, 15 Jul 2022 09:12:09 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"The author (wrongauthor@gmail.com) do not exist on your CMS\"\n}"}],"_postman_id":"ebe134d2-4eee-451b-a510-548cff8f82b6"},{"name":"Create new post with already existing slug","id":"158300c7-16ae-417c-a4dd-be4dca69a005","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"author\": {\n      \"email\": \"melvinnnamani@gmail.com\"\n    },\n    \"categories\": [\"Recipes\", \"Meals\"],\n    \"tags\": [\"Butter\", \"Sushi\", \"Really Good Recipes\"],\n    \"featured_image\": \"https://farm1.staticflickr.com/836/42903355654_8faa21171a_m_d.jpg\",\n    \"featured_image_alt\": \"Featured image alt text example.\",\n    \"slug\": \"this-is-a-blog-post\",\n    \"title\": \"This is a blog post\",\n    \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n    \"summary\": \"This is a blog post summary.\",\n    \"seo_title\": \"This is a blog post\",\n    \"meta_description\": \"This is a blog post to test the API.\",\n    \"status\": \"published\"\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.com/","urlObject":{"path":[""],"host":["https://express-error-handling-api.herokuapp.com"],"query":[],"variable":[]}},"response":[{"id":"75d70e1e-356d-4381-8f18-b7570a62e55a","name":"Create new post with already existing slug","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"author\": {\n      \"email\": \"melvinnnamani@gmail.com\"\n    },\n    \"categories\": [\"Recipes\", \"Meals\"],\n    \"tags\": [\"Butter\", \"Sushi\", \"Really Good Recipes\"],\n    \"featured_image\": \"https://farm1.staticflickr.com/836/42903355654_8faa21171a_m_d.jpg\",\n    \"featured_image_alt\": \"Featured image alt text example.\",\n    \"slug\": \"this-is-a-blog-post\",\n    \"title\": \"This is a blog post\",\n    \"body\": \"<h1>Butter</h1><p>I am so hungry!</p>\",\n    \"summary\": \"This is a blog post summary.\",\n    \"seo_title\": \"This is a blog post\",\n    \"meta_description\": \"This is a blog post to test the API.\",\n    \"status\": \"published\"\n}","options":{"raw":{"language":"json"}}},"url":"https://express-error-handling-api.herokuapp.com/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"Etag","value":"W/\"4b-KD5CsmYZVChz1dGMNfous4mkxOA\""},{"key":"Date","value":"Fri, 15 Jul 2022 09:12:25 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"The slug 'this-is-a-blog-post' is not unique!\"\n}"}],"_postman_id":"158300c7-16ae-417c-a4dd-be4dca69a005"}],"event":[{"listen":"prerequest","script":{"id":"40e5d0fc-487b-4717-8be7-ec9068fdd16a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1b3f046d-7fc9-4be3-ac7f-7c5cc148e9c0","type":"text/javascript","exec":[""]}}],"variable":[{"key":"URL","value":"https://express-error-handling-api.herokuapp.com"}]}