Added imports for NotFound exception, NotAuthorized exception and
get_action.