$(base) - base URL of REST API $(recordid) - a valid record id

URL method result code description
$(base) http-get 400 unparseable request.
$(base)/ http-get 400 unparseable request.
$(base)/$(accountid).key) http-put 200 creates an account.
$(base)/$(accountid).key) http-put 412 account creation failed. Account id is not the hash of the given key.
$(base)/$(accountid).key) http-put 500 account creation failed. Account probably already exists.
$(base)/$(accountid).key) http-get 200 returns an account's public key.
$(base)/$(accountid).key http-get 404 error getting public key. Most likely because the record id is malformed.
$(base)/$(
$(base)/$(recordid).data) http-put 200 record successfully stored.
$(base)/$(recordid).data) http-put 400 unparseable request. Most likely because the record id is malformed (not a SHA-1 hash).
$(base)/$(recordid).data) http-put 412 Record UID must be the hash of the passed in body. The record id is a hash, but the wrong one.
$(base)/$(recordid).data) http-get 200 stored record data returned
$(base)/$(recordid).data) http-get 404 resource not found. Because the record id does not exist on the server.
$(base)/$(recordid).data) http-get 400 unparseable request. The record id is not a SHA-1 hash.
$(base)/$(recordid).data) http-head 200 stored record verified
$(base)/$(recordid).data) http-head 404 resource not found. The record id does not exist on the server.
$(base)/$(recordid).data) http-head 400 unparseable request. The record id is not a SHA-1 hash.