Error codes

These are the default meanings for error codes that are honored throughout the API.