Added new 401 Unauthorized-HTTP-Code and arranged some methods.