Changed 'actions' to 'endpoints' and improved the way the client handles it, also implemented better error handling in items controller