From 00d9e7f5f6b00f8e3c47567fb21aa136f82040cb Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 19 Sep 2020 12:46:29 -0700 Subject: [PATCH] Add 404 template --- app/views/api/v1/api/not_found.json.rabl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/views/api/v1/api/not_found.json.rabl diff --git a/app/views/api/v1/api/not_found.json.rabl b/app/views/api/v1/api/not_found.json.rabl new file mode 100644 index 0000000..9bc7b58 --- /dev/null +++ b/app/views/api/v1/api/not_found.json.rabl @@ -0,0 +1,8 @@ +object false + +node(:errors) do + { + 'message': "Record could not be found.", + 'code': 'not_found' + } +end \ No newline at end of file