<@U04UQ68083H> I'm using Oathkeeper as a reverse p...
# ory-copilot
c
@chilly-king-10285 I'm using Oathkeeper as a reverse proxy in my app, using a
remote_json
authorizer that calls the Keto check endpoint. Everything works pretty well, but I'd like to customize message and status code for some endpoints. The problem is that Oathkeeper (through Keto) is throwing a 403 on a GET for an entity (for example), but I'd like to throw a 404 not found error instead for this type of requests. Is there a way to do that (I'd like to avoid handling everything from my backend, not calling Keto at the proxy level but using an allow authorizer and then calling Keto from my BE only for this reason)?
b
A message from kapa.ai
New message text here
c
@chilly-king-10285 I don't got you, in the docs I don't see anything about customizing error messages and though the fields
Copy code
request:
                 methods: ["GET"]
               status_code: 404
               message: "Not Found"
in the config?
b
A message from kapa.ai
New message text here