BS-9447 : Implement method authorization checking on server side

- Move Exceptions
- Refactor code