Re worked the status codes and how they are handled for the new apis, stil testing