based on bug 736438, permission failures should return valid json objects which can be parsed by the client. Looking at candlepin, body text like this: { displayMessage: "Insufficient permissions" } would be nice. -- bk
But only for /api controllers I guess.
Fixed commit e67933c6fcf7d59eb98e26be21739833f3724e0c Author: Tomas Strachota <tstrachota> Date: Thu Sep 8 17:18:15 2011 +0200 736440 - Failures based on authorization return valid json
(In reply to comment #1) > But only for /api controllers I guess. Yes.
I got a good error, thanks!