Changed some of the Http exception codes and cleaned up some of the unit tests