• Michael Schurter's avatar
    Fix HTTP code for permission denied errors · ae61f730
    Michael Schurter authored
    Fixes #3697
    
    The existing code and test case only covered the leader behavior. When
    querying against non-leaders the error has an "rpc error: " prefix.
    
    To provide consistency in HTTP error response I also strip the "rpc
    error: " prefix for 403 responses as they offer no beneficial additional
    information (and in theory disclose a tiny bit of data to unauthorized
    users, but it would be a pretty weird bit of data to use in a malicious
    way).
    ae61f730
To find the state of this project's repository at the time of any of these versions, check out the tags.