From c807880f7ac73f813b2660ea81a00f7712a4e793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 29 Aug 2016 12:39:49 +0200 Subject: Add old mailing list archives --- .../archives/extend/2015-January/000491.html | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 _build/static/archives/extend/2015-January/000491.html (limited to '_build/static/archives/extend/2015-January/000491.html') diff --git a/_build/static/archives/extend/2015-January/000491.html b/_build/static/archives/extend/2015-January/000491.html new file mode 100644 index 00000000..b4f397a0 --- /dev/null +++ b/_build/static/archives/extend/2015-January/000491.html @@ -0,0 +1,80 @@ + + + + [99s-extend] cowboy and handling exceptions + + + + + + + + + + +

[99s-extend] cowboy and handling exceptions

+ Stefan Strigler + stefan.strigler at gmail.com +
+ Wed Jan 14 17:45:41 CET 2015 +

+
+ +
Hey there,
+
+maybe I'm missing the obvious. What I want to do is add some generic
+handler for exception handling. Say we have a set of resources some of
+which delegating stuff to external, other services. These calls might
+result in a
+
+throw({error, timeout})
+
+for instance. How would I add/modify cowboy's middleware (right place?) to
+handle those (known) exception and return a custom error (like 504 -
+Gateway Timeout).
+
+Thanks for any hints,
+
+Steve
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: <http://lists.ninenines.eu/archives/extend/attachments/20150114/3267f73e/attachment.html>
+
+ + + +
+

+ +
+More information about the Extend +mailing list
+ -- cgit v1.2.3