0022461: Add new standard Exceptions/REST responses
Migrated from: https://tracker.clearos.com/view.php?id=22461
Reported by: PBaldwin
There will be some circumstances where an API request will need to send a "not capable" error message. Consider the case of updating a user's profile:
- REST: POST /api/v1/user/cindy
- API: user->update()
If using the Active Directory connector, no updates/writes are allowed for users -- AD handles that. The REST response and exception should return this standard "not capable" error. Clients can then handle the specific issue if desired.