If you are getting a 401 error even though the token is correct, it is usually because of a network setting such as SSL, or because a different token that has been cached is being used somewhere.
If it is a completely server error, I think it is more likely that a non-401 error will be displayed.