Stub of API for managing alarms.
Special HTTP codes on error.
Should've included this file 2 commits ago.