Log status codes and exceptions