Is it possible to specify a message in the 403 response in Rest Module?

Alan DeKok aland at
Tue Jan 23 12:04:00 UTC 2024

On Jan 23, 2024, at 5:57 AM, 남혁준 <sawd1598 at> wrote:
> I mainly use the Rest module.
> ...
> However, I confirmed that "Module-Failure-Message" in the 403 response
> contained the message "rest: Server returned:".
> It looks like it could be connected by conveying an additional message.
> If possible, I want the message to be delivered together and appended to
> the end, even if it responds with a 403 rejection.
> ex) rest: Server returned: Sorry, Server Reject"
> Is this possible behavior?

  Sure.  The code is in rlm_rest.c.  There's a small difference between the 403 and 401 error cases.  We're happy to accept patches on GitHub.

  Otherwise, we'll put it on the list of things to do, and take a look at some point later.

  Alan DeKok.

More information about the Freeradius-Users mailing list