with status code printed to debug log