move AccessDenied (Error) to error.rb
Merge pull request #3338 from timoschilling/move_error

move AccessDenied (Error) to error.rb