Switching unauthorized status code to 401