Added return HTTP error code on auth error