Distinguish server and client errors

Server errors (such as problem in communication with another component) should be returned as status: error and client errors (such as invalid authentication) as status: fail. Cert-API would be able to distinguish them and send client error messages to client directly.

Original status: failed is dropped.