Minor reformat and added 405 error in the list
Error checkings in auth functions
Merged with gae