Added exceptions for applications api
Added exceptions for device states api
Added exceptions for mailboxes api