Print status code on error