Replace wal_result with fdb_status for more specific errors

Change-Id: I0d31ad7b579dc99e928f7769d58d0ca239c50fba