adding error responses into action chain