Fix broken references in log_request calls

Also fixes broken status code reference in create keypair view