add success and error status codes to doc output