idp3 "Message was expired" and http status code 500
Jarno Huuskonen
jarno.huuskonen at uef.fi
Fri Sep 4 05:19:19 EDT 2015
Hi,
On Fri, Sep 04, Jarno Huuskonen wrote:
> Is it possible to modify the http status code thats sent for "message
> was expired" requests ? Using 500(internal server error) makes it
> hard/impossible to use load balancer feature that tracks backend responses and
> marks server down if it starts replying with too many 50x errors.
Found it: modifying error.vm:
- #if ($eventId == "AccessDenied" or $eventId == "ContextCheckDenied")
+ #if ($eventId == "AccessDenied" or $eventId == "ContextCheckDenied" or $eventId == "MessageReplay")
and
- #elseif ($eventId == "UnableToDecode" || $eventId == "InvalidMessage")
+ #elseif ($eventId == "UnableToDecode" || $eventId == "InvalidMessage" || $eventId == "MessageExpired")
(There're probably other eventIds that shouldn't return status code
500).
-Jarno
--
Jarno Huuskonen
More information about the users
mailing list