You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my understanding (having a little Akka background), rejections are not meant for error responses. Yes, rejections work with status codes and lead to responses, but in the case of 401 for example, we do not want to reject, but respond with a 401 response. IOW, we do not want a filter down the chain to recover the rejection. It is the protocol to return 401.
It's just as @algermissen described, especially with the changes coming in #115. Any customizing of rejections should be done via Filter::recover, and returning a new Reply.
I'd like to be able to reject requests with status codes currently not available, like 401 Unauthorized; is this possible?
The text was updated successfully, but these errors were encountered: