ambry
ambry copied to clipboard
Frontend/router should be able to handle authorization failure.
Currently, store server authoriztion failutre is mapped to ServerErrorCode.Blob_Not_Found. However, router sends request for every replicas for Blob_Not_Found.
Create a new server error code, let router handle it, and finally return http 403 or 401 to client.