Fixed a bug when returning an Unauhtorized status code from the ClientProxy.