Added more fixes for proper error codes

- Made fixes when stopping/starting/enabling/disabling resources
- Made fix for proper error code on auth