https://www.ory.sh/ logo
#talk-oathkeeper
Title
# talk-oathkeeper
h

happy-morning-85531

03/08/2022, 9:03 AM
When the mutator
hydrator
returns a 401, oathkeeper is propagating this error as
500 internal server error
, is this really the expected behavior?
s

steep-lamp-91158

03/08/2022, 9:09 AM
should be
Bad gateway
probably 🤔
h

happy-morning-85531

03/08/2022, 9:10 AM
Feels like this should be configurable. Im working with a scenario where we put mappings in this hydrator, and if the mapping is missing, we want to return a 401 since the mapping is missing rather than a 5xx code that implies something else
s

steep-lamp-91158

03/08/2022, 9:10 AM
hm I see
I suggest opening an issue and discussing it there
h

happy-morning-85531

03/08/2022, 9:11 AM
Alright, thanks for the quick answer 👍