From c56bada509a448348ba724841a27abed201b4861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 24 Sep 2014 15:03:10 +0300 Subject: Remove the error tuple return value for middlewares It wasn't interesting compared to simply returning a halt tuple with an explicit reply. --- doc/src/guide/middlewares.ezdoc | 1 - 1 file changed, 1 deletion(-) (limited to 'doc/src/guide') diff --git a/doc/src/guide/middlewares.ezdoc b/doc/src/guide/middlewares.ezdoc index e33abfb..0c142f9 100644 --- a/doc/src/guide/middlewares.ezdoc +++ b/doc/src/guide/middlewares.ezdoc @@ -24,7 +24,6 @@ Middlewares can return one of four different values: * `{ok, Req, Env}` to continue the request processing * `{suspend, Module, Function, Args}` to hibernate * `{halt, Req}` to stop processing and move on to the next request -* `{error, StatusCode, Req}` to reply an error and close the socket Of note is that when hibernating, processing will resume on the given MFA, discarding all previous stacktrace. Make sure you keep the `Req` -- cgit v1.2.3