Fix app authorization schema
Add error schema