From 55acb56533633bab4ab7693dc7d8ae74ccc6d6b2 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Wed, 14 Jul 2021 15:58:44 +0100 Subject: [PATCH] feat: Add 4xx error messages. --- templates/error/descriptions/H400.md | 4 ++++ templates/error/descriptions/H401.md | 4 ++++ templates/error/descriptions/H403.md | 4 ++++ templates/error/descriptions/H404.md | 5 +++++ 4 files changed, 17 insertions(+) create mode 100644 templates/error/descriptions/H400.md create mode 100644 templates/error/descriptions/H401.md create mode 100644 templates/error/descriptions/H403.md create mode 100644 templates/error/descriptions/H404.md diff --git a/templates/error/descriptions/H400.md b/templates/error/descriptions/H400.md new file mode 100644 index 000000000..3f187b145 --- /dev/null +++ b/templates/error/descriptions/H400.md @@ -0,0 +1,4 @@ +# Bad request +The server could not process your request. + +You will need to adjust the request to continue. diff --git a/templates/error/descriptions/H401.md b/templates/error/descriptions/H401.md new file mode 100644 index 000000000..d932d6616 --- /dev/null +++ b/templates/error/descriptions/H401.md @@ -0,0 +1,4 @@ +# Not logged in +This resource is only accessible by logged in agents. + +Try logging in and revisiting this resource. diff --git a/templates/error/descriptions/H403.md b/templates/error/descriptions/H403.md new file mode 100644 index 000000000..77dcf10c8 --- /dev/null +++ b/templates/error/descriptions/H403.md @@ -0,0 +1,4 @@ +# Access not allowed +You are logged in, but not allowed to access this resource. + +Try requesting access or logging in with a different identity. diff --git a/templates/error/descriptions/H404.md b/templates/error/descriptions/H404.md new file mode 100644 index 000000000..f5df95add --- /dev/null +++ b/templates/error/descriptions/H404.md @@ -0,0 +1,5 @@ +# Resource not found +The requested resource was not found. + +Please check whether the URL is correct, +or create a new resource at this URL.