Added exceptions for response types
Added check for response type in authorization